![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
排序
mars2014jia
这个作者很懒,什么都没留下…
展开
-
Maximum Gap
题目难点1 理解桶排序2 理解中间没有fill过的空桶,bucketMax = integer.min, 所以在之后算相邻的桶最大最小值差的时候必须不能考虑,因此用了个tmp来记录fill过的桶的最大值public class Solution { public int maximumGap(int[] num) { // bucket sort原创 2015-03-15 06:06:20 · 205 阅读 · 0 评论 -
Insertion Sort List
//ref : http://www.cnblogs.com/springfor/p/3862468.html public ListNode insertionSortList(ListNode head) { if(head==null || head.next==null) return head; ListNode t = new ListNode(转载 2015-03-16 12:23:10 · 251 阅读 · 0 评论