Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the correct ...
分类:
其他好文 时间:
2014-11-14 21:02:22
阅读次数:
179
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-11-13 18:06:38
阅读次数:
209
The Cow LexiconDescriptionFew know that the cows have their own dictionary with W (1 ≤ W ≤ 600) words, each containing no more 25 of the characters 'a...
分类:
其他好文 时间:
2014-11-13 16:05:50
阅读次数:
201
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-11-12 00:22:45
阅读次数:
215
给定一组字符串,按照给定长度(eg.16)格式化显示,使每一行尽可能多的单词,单词之间的空格均衡-最左侧可以稍多
左右对齐。最后一行靠左对齐,即最右侧可以没有但系。
Given an array of words and a length L, format the text such that each line has exactly L characters and is ful...
分类:
编程语言 时间:
2014-11-11 22:54:44
阅读次数:
237
Valid ParenthesesGiven a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must clos...
分类:
其他好文 时间:
2014-11-11 22:24:21
阅读次数:
201
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-11-10 06:30:52
阅读次数:
238
Period
Time Limit: 3000MS
Memory Limit: 30000K
Total Submissions: 13584
Accepted: 6396
Description
For each prefix of a given string S with N characters (each chara...
分类:
其他好文 时间:
2014-11-09 18:11:23
阅读次数:
244
Problem H: Partitioning by Palindromes
We say a sequence of characters is a palindrome if it is the same written forwards and backwards. For example, 'racecar' is a palindrome, but 'fastcar' is not...
分类:
其他好文 时间:
2014-11-09 18:08:19
阅读次数:
140
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-11-09 15:07:01
阅读次数:
129