[leetcode]Find Minimum in Rotated Sorted Array II...
分类:
其他好文 时间:
2014-10-22 10:05:19
阅读次数:
167
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
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
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
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
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
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
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
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
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