码迷,mamicode.com
首页 >  
搜索关键字:palindrome    ( 1561个结果
2015 HUAS Summer Trainning #5~G
DescriptionA palindrome is a symmetrical string, that is, a string read identically from left to right as well as from right to left. You are to write...
分类:其他好文   时间:2015-08-15 16:16:54    阅读次数:76
[LeetCode] Palindrome Number
The most obvious idea is to maintain two divisors to get the most and least significantdigits and compare them. Well, there are much more clever ideas...
分类:其他好文   时间:2015-08-15 16:15:53    阅读次数:121
POJ 1159 Palindrome dp
Palindrome Time Limit: 3000MS   Memory Limit: 65536K Total Submissions: 56577   Accepted: 19549 Description A palindrome is a symmetrical string, that is, a string read i...
分类:其他好文   时间:2015-08-15 12:06:32    阅读次数:102
Codeforces #316 E Pig and Palindromes DP
// Codeforces #316 E Pig and Palindromes // // 题目大意: // // 给你一张地图,n*m每个点是一个字母,现在从(0,0)出发, // 每次只能往右或者往下走,求走到(n-1,m-1)形成回文串的方法数. // // 解题思路: // // 动态规划.首先.如果起点和终点的字母不相同,那么肯定 // 不能形成回文串,直接输出0.对于能形成...
分类:其他好文   时间:2015-08-14 22:46:51    阅读次数:653
周赛A题
ATime Limit:2000MSMemory Limit:32768KB64bit IO Format:%lld & %lluDescriptionBy definition palindrome is a string which is not changed when reversed."M...
分类:其他好文   时间:2015-08-14 21:17:54    阅读次数:138
ACM最大公共子序列&&回文串
---恢复内容开始---DescriptionA palindrome is a symmetrical string, that is, a string read identically from left to right as well as from right to left. You ...
分类:其他好文   时间:2015-08-14 21:15:40    阅读次数:109
动态规划最长的回文序列
15-2(最长的回文序列) 回文(palindrome)它是一个正序和反向同一非空字符串。例如。全长1串,civic,racecar,aibohphobia他们是回文。设计一个有效的算法。文子序列。比如,给定输入character,算法应该返回carac.算法的执行时间是怎么样的?解题思路:首先我们...
分类:其他好文   时间:2015-08-14 18:47:21    阅读次数:391
Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes? (i...
分类:其他好文   时间:2015-08-14 18:35:55    阅读次数:142
LightOJ 1258 Making Huge Palindromes (回文&KMP)
http://lightoj.com/volume_showproblem.php?problem=1258 A string is said to be a palindrome if it remains same when read backwards. So, 'abba', 'madam' both are palindromes, but 'adam' is not. Now...
分类:其他好文   时间:2015-08-14 11:49:37    阅读次数:201
【LeetCode-面试算法经典-Java实现】【125-Valid Palindrome(回文字验证)】
【125-Valid Palindrome(回文字验证)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.   For example,   "A ma...
分类:编程语言   时间:2015-08-14 07:38:55    阅读次数:171
1561条   上一页 1 ... 85 86 87 88 89 ... 157 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!