码迷,mamicode.com
首页 >  
搜索关键字:sorted    ( 5925个结果
Find Minimum in Rotated Sorted Array II
[leetcode]Find Minimum in Rotated Sorted Array II...
分类:其他好文   时间:2014-10-22 10:05:19    阅读次数:167
Find Minimum in Rotated Sorted Array II
Follow up for "Find Minimum in Rotated Sorted Array":What if duplicates are allowed? Would this affect the run-time complexity? How and why? Suppose a...
分类:其他好文   时间:2014-10-21 17:25:09    阅读次数:185
Find Minimum in Rotated Sorted Array 2 寻找旋转有序数组的最小值之二
Follow upfor "Find Minimum in Rotated Sorted Array":What ifduplicatesare allowed?Would this affect the run-time complexity? How and why?Suppose a sort...
分类:编程语言   时间:2014-10-21 17:04:11    阅读次数:226
LeetCode--Remove Duplicates from Sorted List
Given a sorted linked list, delete all duplicates such that each element appear onlyonce.For example,Given1->1->2, return1->2.Given1->1->2->3->3, retu...
分类:其他好文   时间:2014-10-21 11:42:57    阅读次数:165
[leetcode] Find Minimum in Rotated Sorted Array @ Python
source:https://oj.leetcode.com/problems/find-minimum-in-rotated-sorted-array/Suppose a sorted array is rotated at some pivot unknown to you beforehand...
分类:编程语言   时间:2014-10-21 05:39:49    阅读次数:190
[Leetcode] Convert Sorted List to Binary Search Tree
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST. 1 /** 2 * Definition for singly-linked ....
分类:其他好文   时间:2014-10-21 03:33:45    阅读次数:168
[Leetcode] Merge Two Sorted Lists
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.Solution:...
分类:其他好文   时间:2014-10-21 02:17:26    阅读次数:157
[Leetcode] Remove Duplicates from Sorted List
Given a sorted linked list, delete all duplicates such that each element appear onlyonce.For example,Given1->1->2, return1->2.Given1->1->2->3->3, retu...
分类:其他好文   时间:2014-10-21 02:15:19    阅读次数:187
leetcode第26题--Remove Duplicates from Sorted Array
problem: Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra sp...
分类:其他好文   时间:2014-10-20 22:53:53    阅读次数:217
[LeetCode]Merge Two Sorted Lists
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. /** * Definition for singly-linked list. * publ...
分类:其他好文   时间:2014-10-20 21:28:05    阅读次数:233
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!