A palindrome is a string that reads the same from the left as it does from the right. For example, I, GAG and MADAM are palindromes, but ADAM is not. ...
分类:
其他好文 时间:
2016-10-07 20:43:22
阅读次数:
161
Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng ...
分类:
其他好文 时间:
2016-10-07 15:43:12
阅读次数:
149
题目如下: 此题用Manacher算法求解,时间复杂度为O(n) Python代码: ...
分类:
其他好文 时间:
2016-10-07 14:07:23
阅读次数:
151
传送门 Description Alex has two sequences a1,a2,...,an and b1,b2,...,bm. He wants find a longest common subsequence that consists of consecutive values i ...
分类:
其他好文 时间:
2016-10-07 11:25:11
阅读次数:
150
Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters. This ...
分类:
其他好文 时间:
2016-10-07 01:14:31
阅读次数:
112
A.Nearest Neighbor Search B.Odd Discount C.Eight Queens D.Longest Common Subsequence E.Coins F.Floyd-Warshall G.Road History H.Around the World I.Long ...
分类:
其他好文 时间:
2016-10-05 21:54:56
阅读次数:
157
Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng ...
分类:
其他好文 时间:
2016-10-05 17:30:33
阅读次数:
114
问题描述: Given a string, find the length of the longest substring without repeating characters. 样例: Given "abcabcbb", the answer is "abc", which the leng ...
分类:
其他好文 时间:
2016-10-05 17:30:25
阅读次数:
99
Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters. This ...
分类:
其他好文 时间:
2016-10-05 12:39:27
阅读次数:
133