Minimum Window SubstringGiven a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).Fo...
Minimum Window Substring
Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).
For example,
S = "ADOBECODEBANC"
T =...
Given a set of distinct integers, S, return all possible subsets.
Note:
Elements in a subset must be in non-descending order.The solution set must not contain duplicate subsets.
For example,...
分类:
编程语言 时间:
2014-12-08 21:29:03
阅读次数:
285
A peak element is an element that is greater than its neighbors.
Given an input array where num[i] ≠ num[i+1], find a peak element and return its index.
The array may contain multiple peaks, in ...
分类:
其他好文 时间:
2014-12-08 21:25:17
阅读次数:
177
【题目】
Given a set of distinct integers, S, return all possible subsets.
Note:
Elements in a subset must be in non-descending order.The solution set must not contain duplicate subsets.
...
分类:
其他好文 时间:
2014-12-08 17:47:58
阅读次数:
191
Atlantis
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 18061
Accepted: 6873
Description
There are several ancient Greek texts that contain descriptions...
分类:
其他好文 时间:
2014-12-08 12:26:40
阅读次数:
226
1 概述1.1 引入泛型方法 在某些情况下,一个类型中可能只有少数方法成员用到了类型参数,这时就未必需要将整个类型都定义成为泛型。例如在下面的代码中,泛型类GC定义了一个静态方法Contain,用于判断一个元素是否存在于一个数组之中:public class GC{ //静态字段 st...
分类:
其他好文 时间:
2014-12-07 11:16:17
阅读次数:
250
Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2]have the following unique perm...
分类:
其他好文 时间:
2014-12-06 16:46:12
阅读次数:
225
Subsets IIGiven a collection of integers that might contain duplicates,S, return all possible subsets.Note:Elements in a subset must be in non-descend...
分类:
其他好文 时间:
2014-12-04 19:32:41
阅读次数:
163
Given a collection of integers that might contain duplicates,S, return all possible subsets.Note:Elements in a subset must be in non-descending order....
分类:
其他好文 时间:
2014-12-03 22:47:54
阅读次数:
153