
leetcode sort
proudmore
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Leetcode Merge Intervals
Given a collection of intervals, merge all overlapping intervals.For example, Given [1,3],[2,6],[8,10],[15,18], return [1,6],[8,10],[15,18]. 题中给出的intervals实际上是已经按start排好序的, otherwise,需要implements原创 2015-04-14 08:34:35 · 154 阅读 · 0 评论 -
Leetcode Maximum gap
Given an unsorted array, find the maximum difference between the successive elements in its sorted form.Try to solve it in linear time/space.Return 0 if the array contains less than 2 elements.You may原创 2015-04-17 04:43:20 · 246 阅读 · 0 评论 -
Leetcode Largest number
Given a list of non negative integers, arrange them such that they form the largest number.For example, given [3, 30, 34, 5, 9], the largest formed number is 9534330.Note: The result may be very large,原创 2015-05-07 07:33:29 · 238 阅读 · 0 评论