码迷,mamicode.com
首页 >  
搜索关键字:palindromic    ( 595个结果
LeetCode OJ: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-11-02 00:00:09    阅读次数:277
[leetcode]Longest Palindromic Substring
题目链接:https://leetcode.com/problems/longest-palindromic-substring/输出最长的回文串 1 class Solution { 2 public: 3 int pre[22222]; 4 char x[22222]; 5 ...
分类:其他好文   时间:2015-10-31 17:14:56    阅读次数:182
Longest Palindromic Substring
问题链接:https://leetcode.com/problems/longest-palindromic-substring/ Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there ...
分类:其他好文   时间:2015-10-30 02:21:57    阅读次数:199
[LeetCode]33. 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-10-22 12:04:38    阅读次数:148
求最长回文子串:Manacher算法
主要学习自:http://articles.leetcode.com/2011/11/longest-palindromic-substring-part-ii.html问题描述:回文字符串就是左右对称的字符串,如:"abba",而最长回文子串则是字符串长度最长的回文子字符串,如"abbaca"的最...
分类:编程语言   时间:2015-10-11 17:52:19    阅读次数:215
leetcode 5 :Longest Palindromic Substring 找出最长回文子串
题目: Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique lo...
分类:其他好文   时间:2015-10-06 22:12:48    阅读次数:479
UVA 11027 - Palindromic Permutation
题目意思为解码字符串,要输出第n个回文字符串,因为对称关系,前一半确定了,后一半也就跟着确定了,所以n其实就是前一半字符串的编码,还要减去1,直接解码出来再复制给后半即可 1 #include 2 #include 3 #include 4 5 using namespace std...
分类:其他好文   时间:2015-10-05 18:01:13    阅读次数:118
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 longe....
分类:其他好文   时间:2015-10-04 17:09:04    阅读次数:165
poj 算法基础 编程题#1:UNIMODAL PALINDROMIC DECOMPOSITIONS
编程题#1:UNIMODAL PALINDROMIC DECOMPOSITIONS来源: POJ(Coursera声明:在POJ上完成的习题将不会计入Coursera的最后成绩。)注意: 总时间限制: 1000ms 内存限制: 65536kB描述A sequence of positive inte...
分类:编程语言   时间:2015-10-02 21:10:04    阅读次数:255
LeetCode #5 Longest Palindromic Substring (M)
[Problem]Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique l...
分类:其他好文   时间:2015-10-02 00:11:38    阅读次数:194
595条   上一页 1 ... 34 35 36 37 38 ... 60 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!