LeetCode: Valid PalindromeGiven a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example,"A...
分类:
其他好文 时间:
2014-08-25 22:31:25
阅读次数:
216
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets must close in the c...
分类:
其他好文 时间:
2014-08-25 13:04:24
阅读次数:
139
Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.For "(()", the lon...
分类:
其他好文 时间:
2014-08-25 11:47:54
阅读次数:
172
Given an array of words and a length L, format the text such that each line has exactly L characters and is fully (left and right) justified.You shoul...
分类:
其他好文 时间:
2014-08-24 23:32:23
阅读次数:
254
Longest Substring Without Repeating Characters
Total Accepted: 20506 Total
Submissions: 92223My Submissions
Given a string, find the length of the longest substring without repeating char...
分类:
其他好文 时间:
2014-08-23 21:42:21
阅读次数:
359
C中,整型有: characters,shortinteger,integer,longinteger 看起来,longinteger要比shortinteger大,但是这也是不一定的. shortinteger最少有16位,而longinteger最少要32位.但是,要设计默认的intege...
分类:
其他好文 时间:
2014-08-22 15:47:08
阅读次数:
186
uva 6757 Cup of CowardsCup of Cowards (CoC) is a role playing game that has 5 di?erent characters (Mage, Tank, Fighter,Assassin and Marksman). A team ...
分类:
其他好文 时间:
2014-08-21 22:43:24
阅读次数:
456
We will construct an infinitely long string from two short strings: A = "^__^" (four characters), and B = "T.T" (three characters). Repeat the followi...
分类:
其他好文 时间:
2014-08-20 15:43:02
阅读次数:
178
操作
Change operations:
0 a b change all characters into '0's in [a , b]
1 a b change all characters into '1's in [a , b]
2 a b change all '0's into '1's and change all '1's into '0's in [a, b]
Out...
分类:
其他好文 时间:
2014-08-20 12:36:52
阅读次数:
392
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: Pana...
分类:
其他好文 时间:
2014-08-19 23:57:55
阅读次数:
475