Greedy
文章平均质量分 75
gexlei
这个作者很懒,什么都没留下…
展开
-
Queue Reconstruction by Height
题目 Suppose you have a random list of people standing in a queue. Each person is described by a pair of integers (h, k), where h is the height of the person and k is the number of people in fr原创 2016-11-06 16:16:24 · 371 阅读 · 0 评论 -
Is Subsequence
题目 Given a string s and a string t, check if s is subsequence of t. You may assume that there is only lower case English letters in both s and t. t is potentially a very long (length ~= 500,00转载 2016-11-06 16:50:58 · 202 阅读 · 0 评论 -
Minimum Number of Arrows to Burst Balloons
题目 There 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转载 2016-11-16 14:35:09 · 249 阅读 · 0 评论