码迷,mamicode.com
首页 >  
搜索关键字:palindrome    ( 1561个结果
poj 1159 Palindrome -- 回文串,动态规划
Palindrome Time Limit: 3000MS   Memory Limit: 65536K Total Submissions: 59029   Accepted: 20505 Description A palindrome is a symmetrical string, that is, a string read i...
分类:其他好文   时间:2016-05-12 17:25:12    阅读次数:161
poj 1159 Palindrome
Palindrome Time Limit: 3000MS   Memory Limit: 65536K Total Submissions: 44186   Accepted: 15050 Description A palindrome is a symmetrical string, that is, a string read ide...
分类:其他好文   时间:2016-05-12 17:08:23    阅读次数:126
leetcode 336. Palindrome Pairs
传送门 Given a list of unique words. Find all pairs of distinct indices (i, j) in the given list, so that the concatenation of the two words, i.e. words[ ...
分类:其他好文   时间:2016-05-10 16:45:27    阅读次数:397
poj 3974 Palindrome
...
分类:其他好文   时间:2016-05-09 22:01:32    阅读次数:159
D - Palindrome Partitioning (DP)
Description A palindrome partition is the partitioning of a string such that each separate substring is a palindrome. For example, the string "ABACABA ...
分类:其他好文   时间:2016-05-08 09:07:23    阅读次数:137
POJ 3974 Palindrome
D - Palindrome Time Limit:15000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Submit Status Practice POJ 3974 Description Andy the smart comput ...
分类:其他好文   时间:2016-05-04 22:40:59    阅读次数:370
Palindrome Pairs
Given a list of unique words. Find all pairs of distinct indices (i, j) in the given list, so that the concatenation of the two words, i.e. words[i] + ...
分类:其他好文   时间:2016-05-02 07:05:56    阅读次数:279
后缀数组 POJ 3974 Palindrome && URAL 1297 Palindrome
题目链接 题意:求给定的字符串的最长回文子串 分析:做法是构造一个新的字符串是原字符串+反转后的原字符串(这样方便求两边回文的后缀的最长前缀),即newS = S + '$' + revS,枚举回文串中心位置,RMQ询问LCP = min (height[rank[l]+1] to height[r ...
分类:编程语言   时间:2016-04-30 16:48:02    阅读次数:185
LeetCode Palindrome Partitioning II
将一个字符串分割成若干个子字符串,使得子字符串都是回文字符串,要求最少需要几次分割能够满足需求。...
分类:其他好文   时间:2016-04-29 18:17:37    阅读次数:145
Leetcode题目:Palindrome Linked List
题目: Given a singly linked list, determine if it is a palindrome. Follow up: Could you do it in O(n) time and O(1) space? 题目解答:题目中要求在O(n)的时间复杂度和O(1)的空间 ...
分类:其他好文   时间:2016-04-28 20:13:36    阅读次数:181
1561条   上一页 1 ... 67 68 69 70 71 ... 157 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!