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
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
传送门 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
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
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
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
题目链接 题意:求给定的字符串的最长回文子串 分析:做法是构造一个新的字符串是原字符串+反转后的原字符串(这样方便求两边回文的后缀的最长前缀),即newS = S + '$' + revS,枚举回文串中心位置,RMQ询问LCP = min (height[rank[l]+1] to height[r ...
分类:
编程语言 时间:
2016-04-30 16:48:02
阅读次数:
185
将一个字符串分割成若干个子字符串,使得子字符串都是回文字符串,要求最少需要几次分割能够满足需求。...
分类:
其他好文 时间:
2016-04-29 18:17:37
阅读次数:
145
题目: 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