感觉需要注意的点就是在A-Z和a-z之间还夹了6个其他的字符,所以统计的时候不能用new int[52]需要new int[58] 代码; ...
分类:
其他好文 时间:
2016-10-25 14:35:48
阅读次数:
163
UVA - 11584 Partitioning by Palindromes We say a sequence of char- acters is a palindrome if it is the same written forwards and backwards. For exampl ...
分类:
其他好文 时间:
2016-10-19 02:47:18
阅读次数:
169
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example,"A man, a plan, a canal: Pan ...
分类:
其他好文 时间:
2016-10-16 16:18:52
阅读次数:
109
题目链接:http://lightoj.com/volume_showproblem.php?problem=1044 dp[i][j]表示i到j直接的最小回文区间个数,直接看代码 ...
分类:
其他好文 时间:
2016-10-14 14:02:28
阅读次数:
144
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example,"A man, a plan, a canal: Pan ...
分类:
其他好文 时间:
2016-10-10 07:42:04
阅读次数:
173
leetcode 上的题目 Determine whether an integer is a palindrome. Do this without extra space. 由于不能使用额外空间,所以不能把数字转化为字符串后进行比较。因为这样空间复杂度将为线性。 leetcode给出了几点提示 ...
分类:
其他好文 时间:
2016-10-08 13:24:55
阅读次数:
175
A palindrome is a string that reads the same from the left as it does from the right. For example, I, GAG and MADAM are palindromes, but ADAM is not. ...
分类:
其他好文 时间:
2016-10-07 20:43:22
阅读次数:
161
Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters. This ...
分类:
其他好文 时间:
2016-10-05 12:39:27
阅读次数:
133
125. Valid Palindrome Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example,"A man ...
分类:
其他好文 时间:
2016-10-01 19:14:18
阅读次数:
103