码迷,mamicode.com
首页 >  
搜索关键字:characters    ( 2378个结果
Valid Parentheses
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
Valid Palindrome
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
POJ3267——The Cow Lexicon(动态规划)
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 Word
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
(每日算法)leetcode--Text Justification(格式化字符串)
给定一组字符串,按照给定长度(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 Parentheses
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
Length of Last Word 求末尾单词的长度
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
POJ 1961 period
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
Uva 11584 - Partitioning by Palindromes dp
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
[LeetCode] Valid Palindrome
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!