码迷,mamicode.com
首页 >  
搜索关键字:sorted    ( 5925个结果
[LeetCode]83 Remove Duplicates from Sorted List
https://oj.leetcode.com/problems/remove-duplicates-from-sorted-list/http://blog.csdn.net/linhuanmars/article/details/24354291/** *Definitionforsingly-linkedlist. *publicclassListNode{ *intval; *ListNodenext; *ListNode(intx){ *val=x; *next=null; *} *} */ pub..
分类:其他好文   时间:2015-01-04 19:31:37    阅读次数:201
[LeetCode]82 Remove Duplicates from Sorted List II
https://oj.leetcode.com/problems/remove-duplicates-from-sorted-list-ii/http://blog.csdn.net/linhuanmars/article/details/24389429/** *Definitionforsingly-linkedlist. *publicclassListNode{ *intval; *ListNodenext; *ListNode(intx){ *val=x; *next=null; *} *} */ ..
分类:其他好文   时间:2015-01-04 19:30:52    阅读次数:150
[LeetCode]21 Merge Two Sorted Lists
https://oj.leetcode.com/problems/merge-two-sorted-lists/http://blog.csdn.net/linhuanmars/article/details/19712593/** *Definitionforsingly-linkedlist. *publicclassListNode{ *intval; *ListNodenext; *ListNode(intx){ *val=x; *next=null; *} *} */ publicclassSolu..
分类:其他好文   时间:2015-01-04 11:34:49    阅读次数:147
O(n^2) Sortings
Insertion Sort:Time Complexity: Best O(n) (when already sorted); Average O(n^2); Worst O(n^2).Space Complexity: O(1) public static void main(String...
分类:其他好文   时间:2015-01-04 11:15:10    阅读次数:249
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 ...
分类:其他好文   时间:2015-01-04 06:25:08    阅读次数:192
redis ruby客户端学习( 三)
接上一篇redis ruby客户端学习( 二)对于redis的五种数据类型:字符串(String),哈希(Map),列表(list),集合(sets)和有序集合(sorted sets),上一篇介绍了哈希和列表。一,集合mset。添加一个或者多个元素到集合(set)里require "redis"r...
分类:其他好文   时间:2015-01-03 18:32:27    阅读次数:165
redis ruby客户端学习( 二)
接上一篇redis ruby客户端学习( 二)对于redis的五种数据类型:字符串(String),哈希(Map),列表(list),集合(sets)和有序集合(sorted sets),上一篇介绍了字符串。1,哈希(Map)hset。设置 key 指定的哈希集中指定字段的值。如果 key 指定的哈...
分类:其他好文   时间:2015-01-02 22:13:50    阅读次数:299
[LeetCode]108 Convert Sorted Array to Binary Search Tree
https://oj.leetcode.com/problems/convert-sorted-array-to-binary-search-tree/http://fisherlei.blogspot.com/2013/03/leetcode-convert-sorted-array-to-binary.html/** *Definitionforbinarytree *publicclassTreeNode{ *intval; *TreeNodeleft; *TreeNoderight; *TreeNod..
分类:其他好文   时间:2015-01-02 16:19:16    阅读次数:151
[LeetCode]109 Convert Sorted List to Binary Search Tree
https://oj.leetcode.com/problems/convert-sorted-list-to-binary-search-tree/http://fisherlei.blogspot.com/2013/01/leetcode-convert-sorted-list-to-binary.htmlhttp://blog.csdn.net/worldwindjp/article/details/39722643/** *Definitionforsingly-linkedlist. *public..
分类:其他好文   时间:2015-01-02 16:17:43    阅读次数:215
[LeetCode]23 Merge k Sorted Lists
https://oj.leetcode.com/problems/merge-k-sorted-lists/http://fisherlei.blogspot.com/2012/12/leetcode-merge-k-sorted-lists.html/** *Definitionforsingly-linkedlist. *publicclassListNode{ *intval; *ListNodenext; *ListNode(intx){ *val=x; *next=null; *} *} */ pu..
分类:其他好文   时间:2015-01-02 16:11:43    阅读次数:152
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!