码迷,mamicode.com
首页 >  
搜索关键字:longest consecutive    ( 3017个结果)
LeetCode--5. Longest Palindromic Substring
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
Longest Common Prefix
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
5. 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 longes ...
分类:其他好文   时间:2016-05-05 14:38:01    阅读次数:123
3. Longest Substring Without Repeating Characters
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
3. Longest Substring Without Repeating Characters
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
3. Longest Substring Without Repeating Characters
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
Template : Two Pointers & Hash -> String process
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
POJ 2533.Longest Ordered Subsequence
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
UVA OJ-11095 Maximum Product(暴力求解法)
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
POJ-2533 Longest Ordered Subsequence ( DP )
题目链接: 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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!