标题:Unique Binary Search Trees通过率:37.0%难度:中等Givenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= ...
分类:
其他好文 时间:
2015-02-20 14:07:19
阅读次数:
110
标题:Unique Binary Search Trees II通过率:27.5%难度:中等Givenn, generate all structurally uniqueBST's(binary search trees) that store values 1...n.For example,G...
分类:
其他好文 时间:
2015-02-20 14:05:11
阅读次数:
127
标题:Sort List通过率:21.3%难度:中等Sort a linked list inO(nlogn) time using constant space complexity.本题就是一个排序的问题,但是是针对单向链表去处理,那么问题关键就是怎么去处理链表,时间复杂度为nlogn,所以可以...
分类:
其他好文 时间:
2015-02-16 11:41:43
阅读次数:
146
标题:Find Minimum in Rotated Sorted Array II通过率:31.1%难度:难Follow upfor "Find Minimum in Rotated Sorted Array":What ifduplicatesare allowed?Would this aff...
分类:
其他好文 时间:
2015-02-15 12:07:22
阅读次数:
133
标题:Maximum Subarray通过率:34.5%难度:中等Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, ...
分类:
其他好文 时间:
2015-02-13 13:02:34
阅读次数:
162
标题:Search in Rotated Sorted Array通过率:28.9%难度:难Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e.,0 1 2 4 5 6 7might becom...
分类:
其他好文 时间:
2015-02-12 12:16:12
阅读次数:
176
题目:Search Insert Position通过率:35.3%难度:中等Given a sorted array and a target value, return the index if the target is found. If not, return the index wher...
分类:
其他好文 时间:
2015-02-12 12:13:14
阅读次数:
111
标题:Integer to Roman通过率:34.4%难度:中等Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.前面做过数字转罗马数字...
分类:
其他好文 时间:
2015-02-11 16:04:41
阅读次数:
143
标题:Multiply Strings通过率: 20.8%难度:中等Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be ...
分类:
其他好文 时间:
2015-02-11 16:00:30
阅读次数:
115
标题:Find Peak Element通过率:32.3%难度:中等A peak element is an element that is greater than its neighbors.Given an input array wherenum[i] ≠ num[i+1], find a ...
分类:
其他好文 时间:
2015-02-10 13:01:20
阅读次数:
171