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
#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
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
擦!leetcode题目:Longest Palindromic Substring...
分类:
其他好文 时间:
2015-02-12 00:50:18
阅读次数:
161
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
题目描述: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
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 (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
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
求解回文字符串:这道题是查找资料才得到的解法。具体思路如下:比如对字符串abcba,做如下处理#a#b#c#b#a#,目的是消除偶数的回文。计算一点的回文长度时,根据保存的前端的最大回文长度和中心点,判断当前点应该是从0开始计算,还是可以根据利用以前的结果。主要就是这个思路。class Soluti...
分类:
其他好文 时间:
2015-02-01 13:27:48
阅读次数:
173