greedy
文章平均质量分 69
qq379548839
这个作者很懒,什么都没留下…
展开
-
Leetcode 455. Assign Cookies[easy]
题目: 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 of a原创 2016-11-16 15:00:56 · 660 阅读 · 0 评论 -
Leetcode 452. Minimum Number of Arrows to Burst Balloons[medium]
题目: here are a number of spherical balloons spread in two-dimensional space. For each balloon, provided input is the start and end coordinates of the horizontal diameter. Since it’s horizontal, y-coor原创 2016-11-16 15:47:56 · 394 阅读 · 0 评论 -
Leetcode 435. Non-overlapping Intervals[medium]
题目: Given a collection of intervals, find the minimum number of intervals you need to remove to make the rest of the intervals non-overlapping.Note: You may assume the interval’s end point is always原创 2016-11-16 16:47:33 · 310 阅读 · 0 评论 -
Leetcode 330. Patching Array[hard]
题目: Given a sorted positive integer array nums and an integer n, add/patch elements to the array such that any number in range [1, n] inclusive can be formed by the sum of some elements in the array.原创 2016-11-16 17:42:45 · 267 阅读 · 0 评论