Palindromic SquaresRob KolstadPalindromes are numbers that read the same forwards as backwards. The number 12321 is a typical palindrome.Given a numbe...
分类:
其他好文 时间:
2015-09-01 23:57:31
阅读次数:
347
https://leetcode.com/problems/longest-palindromic-substring/manacher算法相关:http://blog.csdn.net/ywhorizen/article/details/6629268class Solution {public:...
分类:
编程语言 时间:
2015-09-01 21:33:57
阅读次数:
168
https://leetcode.com/problems/longest-palindromic-substring/manacher算法:http://blog.csdn.net/ywhorizen/article/details/6629268string longestPalindrome(...
分类:
编程语言 时间:
2015-09-01 18:28:26
阅读次数:
131
Palindromic SubsequenceTime Limit:3000MSMemory Limit:0KB64bit IO Format:%lld & %lluSubmitStatusPracticeUVA 11404 1 #include 2 #include 3 #include 4...
分类:
其他好文 时间:
2015-08-30 21:19:39
阅读次数:
208
Longest Palindromic SubstringGiven a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there...
分类:
编程语言 时间:
2015-08-29 22:58:51
阅读次数:
160
Palindromic Numbers
Time Limit: 2000MS Memory Limit: 32768KB 64bit IO Format: %lld & %lluSubmit StatusDescriptionA palindromic number or numeral palindrome is a ‘symmetrical’ number like 16...
分类:
其他好文 时间:
2015-08-28 11:08:14
阅读次数:
212
我会告诉你进制转换我都忘了,翻出了数字逻辑课本才想起来的。/*ID: modengd1PROG: palsquareLANG: C++*/#include #include #include #include using namespace std;char leter[20]={'0','1','...
分类:
其他好文 时间:
2015-08-26 22:02:22
阅读次数:
173
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-08-26 19:30:33
阅读次数:
226
palindromeQuestion 1Longest Palindromic SubstringGiven a stringS, find the longest palindromic substring inS. You may assume that the maximum length o...
分类:
其他好文 时间:
2015-08-26 01:31:55
阅读次数:
113
背景
最近开始研究算法,于是在leetcode上做算法题,第五题Longest Palindromic Substring便是关于回文子串的。
什么是回文子串
回文字符串是指将该字符串前后颠倒之后和该字符串一样的字符串。例如:a,aaaa,aba,abba…
最长回文子串
要求最长回文子串,就需要遍历每一个子串,...
分类:
编程语言 时间:
2015-08-19 16:57:00
阅读次数:
171