原题链接:https://leetcode.com/problems/longest-palindromic-substring/
Given a string S,
find the longest palindromic substring inS.
You may assume that the maximum length of S is
1000, and ther...
分类:
其他好文 时间:
2015-06-21 14:33:22
阅读次数:
119
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 longes...
分类:
其他好文 时间:
2015-06-20 22:00:33
阅读次数:
219
题目:
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 longest...
分类:
其他好文 时间:
2015-06-20 17:07:53
阅读次数:
126
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 longest palindromic substring.
解题思路
网上有一种思路是说先得到输入字符...
分类:
其他好文 时间:
2015-06-19 21:39:30
阅读次数:
112
[Java]LeetCode5 Longest Palindromic Substring...
分类:
编程语言 时间:
2015-06-19 11:56:24
阅读次数:
145
- (NSInteger)countOfSubstring:(NSString *)substring inString:(NSString *)s{ NSArray *ary=[s componentsSeparatedByString:substring]; NSString *str=[ary...
分类:
其他好文 时间:
2015-06-19 10:19:27
阅读次数:
81
题目意思:求字符串中,最长不重复连续子串思路:使用hashmap,发现unordered_map会比map快,设置一个起始位置,计算长度时,去减起始位置的值 eg:a,b,c,d,e,c,b,a,e 0 1 2 3 4 0 1 5 3 4 0 6 5 3 4 ...
分类:
其他好文 时间:
2015-06-18 16:43:21
阅读次数:
156
题意:最长回文子串。原题来自:https://leetcode.com/problems/longest-palindromic-substring/分析:有2种解法,字符串解析(KMP算法,我忘了),还有一种,直接用动态规划搞定。不晓得动态规划方法的朋友,自己百度学下这方法,该方法用处很多。至于K...
分类:
其他好文 时间:
2015-06-17 21:16:07
阅读次数:
121
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-06-17 15:16:35
阅读次数:
140
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2015-06-17 14:57:56
阅读次数:
111