码迷,mamicode.com
首页 >  
搜索关键字:palindromic substrin    ( 620个结果
PAT1024. Palindromic Number
A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number...
分类:其他好文   时间:2015-02-21 18:51:20    阅读次数:178
PAT:1019. General Palindromic Number (20) AC
#include#includeint main(){ int n,jin; scanf("%d%d",&n,&jin); if(0==n) //特判0的时候,就是回文数 { printf("Yes\n0"); return 0; } int arr[50]...
分类:其他好文   时间:2015-02-19 12:51:32    阅读次数:148
hdu3294---Girls' research
Problem Description One day, sailormoon girls are so delighted that they intend to research about palindromic strings. Operation contains two steps: First step: girls will write a long string (only c...
分类:其他好文   时间:2015-02-18 17:40:37    阅读次数:660
第五题:Longest Palindromic Substring
擦!leetcode题目:Longest Palindromic Substring...
分类:其他好文   时间:2015-02-12 00:50:18    阅读次数:161
leetcode[5]Longest Palindromic Substring
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:其他好文   时间:2015-02-10 15:06:02    阅读次数:172
LeetCode 005 Longest Palindromic Substring
题目描述:Longest Palindromic SubstringGiven a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and ...
分类:其他好文   时间:2015-02-06 23:10:27    阅读次数:133
PAT1019. General Palindromic Number
A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number...
分类:其他好文   时间:2015-02-04 12:36:32    阅读次数:114
1019. General Palindromic Number
1019. General Palindromic Number (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueA number that will be the same when it is written forwa...
分类:其他好文   时间:2015-02-03 21:16:09    阅读次数:211
【leetcode】Longest Palindromic Substring (middle) 经典
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:其他好文   时间:2015-02-03 21:02:01    阅读次数:155
Longest Palindromic Substring
求解回文字符串:这道题是查找资料才得到的解法。具体思路如下:比如对字符串abcba,做如下处理#a#b#c#b#a#,目的是消除偶数的回文。计算一点的回文长度时,根据保存的前端的最大回文长度和中心点,判断当前点应该是从0开始计算,还是可以根据利用以前的结果。主要就是这个思路。class Soluti...
分类:其他好文   时间:2015-02-01 13:27:48    阅读次数:173
620条   上一页 1 ... 49 50 51 52 53 ... 62 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!