Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the correct ...
分类:
其他好文 时间:
2014-10-25 14:18:46
阅读次数:
178
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-10-25 07:04:13
阅读次数:
208
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-10-24 13:00:38
阅读次数:
170
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-10-24 12:28:03
阅读次数:
211
Arbitrary text placed in an HTML tag often needs to be altered, to ensure that the resulting HTML remains valid.Problem characters can include:"'\&The...
分类:
编程语言 时间:
2014-10-24 09:09:45
阅读次数:
320
/** * Delete any character in a given String. * @param inString the original String * @param charsToDelete a set of characters to dele...
分类:
编程语言 时间:
2014-10-24 06:52:59
阅读次数:
217
今天又舔着脸开始LeetCode的征程了,本来是写在CSDN的,无奈遇上他家博客老是在升级中。。。题目:Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the...
分类:
其他好文 时间:
2014-10-24 00:11:43
阅读次数:
151
Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring.For"(()", the longest...
分类:
其他好文 时间:
2014-10-22 23:32:51
阅读次数:
235
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 va...
分类:
其他好文 时间:
2014-10-22 22:02:58
阅读次数:
227
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
For example,
"A man, a plan, a canal: Panama" is a palindrome.
"race a car" is not a...
分类:
其他好文 时间:
2014-10-21 23:16:15
阅读次数:
293