Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without
repeating letters for "abcabcbb" is "abc", which the length is 3. Fo...
分类:
其他好文 时间:
2014-12-11 22:33:05
阅读次数:
403
Length of Last WordGiven a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.I...
分类:
其他好文 时间:
2014-12-11 17:02:35
阅读次数:
133
DescriptionFor this question, your program is required to process an input string containing only ASCII characters between ‘0’ and ‘9’, or between ‘a’...
分类:
其他好文 时间:
2014-12-10 15:46:49
阅读次数:
184
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 string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2014-12-08 21:07:17
阅读次数:
128
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.
The brackets must close in the correct order, "()" and "()[]{}" are all vali...
分类:
其他好文 时间:
2014-12-08 14:03:01
阅读次数:
146
重点回忆下我觉得比较有意义的题目吧。水题就只贴代码了。Distinct Characters Subsequence水。代码: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 ...
分类:
其他好文 时间:
2014-12-06 06:32:54
阅读次数:
360
Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the last word doe...
分类:
其他好文 时间:
2014-12-05 23:59:22
阅读次数:
322
题目描述:Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating lette...
分类:
其他好文 时间:
2014-12-05 21:10:24
阅读次数:
187