码迷,mamicode.com
首页 >  
搜索关键字:palindrome    ( 1561个结果
409. Longest Palindrome
感觉需要注意的点就是在A-Z和a-z之间还夹了6个其他的字符,所以统计的时候不能用new int[52]需要new int[58] 代码; ...
分类:其他好文   时间:2016-10-25 14:35:48    阅读次数:163
UVA - 11584 Partitioning by Palindromes[序列DP]
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
125. 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: Pan ...
分类:其他好文   时间:2016-10-16 16:18:52    阅读次数:109
Light oj 1044 - Palindrome Partitioning(区间dp)
题目链接:http://lightoj.com/volume_showproblem.php?problem=1044 dp[i][j]表示i到j直接的最小回文区间个数,直接看代码 ...
分类:其他好文   时间:2016-10-14 14:02:28    阅读次数:144
125. 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: Pan ...
分类:其他好文   时间:2016-10-10 07:42:04    阅读次数:173
判断一个int 型整数 是否为回文数
leetcode 上的题目 Determine whether an integer is a palindrome. Do this without extra space. 由于不能使用额外空间,所以不能把数字转化为字符串后进行比较。因为这样空间复杂度将为线性。 leetcode给出了几点提示 ...
分类:其他好文   时间:2016-10-08 13:24:55    阅读次数:175
Uva 11151 - Longest Palindrome
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
[LeetCode] Longest Palindrome 最长回文串
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
longest-palindrome
...
分类:其他好文   时间:2016-10-03 23:27:49    阅读次数:144
leetcode 125
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
1561条   上一页 1 ... 55 56 57 58 59 ... 157 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!