Greedy
兔子爱吃萝北
无忧无虑的像个瓜皮
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeetCode455. 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 o...原创 2018-11-23 17:05:23 · 170 阅读 · 0 评论 -
LeetCode860. Lemonade Change
题目描述:At a lemonade stand, each lemonade costs $5. Customers are standing in a queue to buy from you, and order one at a time (in the order specified by bills).Each customer will only buy one lem...原创 2018-11-23 18:27:25 · 191 阅读 · 0 评论 -
LeetCode122. 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 (i.e.,...原创 2018-11-25 22:21:57 · 188 阅读 · 0 评论 -
LeetCode921. Minimum Add to Make Parentheses Valid
题目描述:Given a string S of '(' and ')' parentheses, we add the minimum number of parentheses ( '(' or ')', and in any positions ) so that the resulting parentheses string is valid.Formally, a parent...原创 2018-11-26 11:52:31 · 167 阅读 · 0 评论 -
LeetCode763. Partition Labels
题目描述:A string S of lowercase letters is given. We want to partition this string into as many parts as possible so that each letter appears in at most one part, and return a list of integers represen...原创 2018-11-26 16:14:13 · 369 阅读 · 0 评论
分享