贪心算法
LanceLee_lby
这个作者很懒,什么都没留下…
展开
-
Assign Cookies
题目: Assume you are an awesome parent and want to give your children some cookies. But, you should give each child at most one cookie. Each child i has a greed factor gi, which is the minimum size原创 2017-04-22 15:24:37 · 140 阅读 · 0 评论 -
Best Time to Buy and Sell Stock II
题目·: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may complete as many transactions as you like (原创 2017-04-22 17:10:34 · 118 阅读 · 0 评论