Problem:
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.
Analysis:...
分类:
其他好文 时间:
2016-05-07 08:41:06
阅读次数:
176
Write a function to find the longest common prefix string amongst an array of strings. 1 public class Solution { 2 3 // 1. Method 1, start from the fi ...
分类:
其他好文 时间:
2016-05-06 07:04:24
阅读次数:
148
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 ...
分类:
其他好文 时间:
2016-05-05 14:38:01
阅读次数:
123
Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng ...
分类:
其他好文 时间:
2016-05-04 18:43:34
阅读次数:
136
Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng ...
分类:
其他好文 时间:
2016-05-02 21:13:03
阅读次数:
143
Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng ...
分类:
其他好文 时间:
2016-05-02 14:19:48
阅读次数:
197
Reference : https://leetcode.com/discuss/72701/here-10-line-template-that-can-solve-most-substring-problems 3. Longest Substring Without Repeating Cha ...
分类:
其他好文 时间:
2016-05-02 11:52:27
阅读次数:
279
Longest Ordered Subsequence Time Limit:2000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u SubmitStatusPracticePOJ 2533 Longest Ordered Subseque ...
分类:
其他好文 时间:
2016-05-02 00:40:39
阅读次数:
133
Given a sequence of integers S = {S1, S2, ..., Sn}, you should determine what is the value of the maximum positive product involving consecutive terms ...
分类:
其他好文 时间:
2016-04-30 18:13:57
阅读次数:
167
题目链接: http://poj.org/problem?id=2533 Description A numeric sequence of ai is ordered if a1 < a2 < ... < aN. Let the subsequence of the given numeric s ...
分类:
其他好文 时间:
2016-04-30 00:58:28
阅读次数:
182