码迷,mamicode.com
首页 >  
搜索关键字:longest consecutive    ( 3017个结果)
Substring
Substring 时间限制:1000 ms  |  内存限制:65535 KB 描述 You are given a string input. You are to find the longest substring of input such that the reversal of the substring is also a substring of i...
分类:其他好文   时间:2015-03-18 14:11:43    阅读次数:118
HDU 3308 LCIS(线段树区间合并)
Problem Description Given n integers. You have two operations: U A B: replace the Ath number by B. (index counting from 0) Q A B: output the length of the longest consecutive increasing subseque...
分类:其他好文   时间:2015-03-17 23:39:04    阅读次数:161
【LeetCode从零单排】No 3 Longest Substring Without Repeating Characters
题目Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3. Fo...
分类:其他好文   时间:2015-03-17 18:04:49    阅读次数:134
LeetCode题解 || Longest Substring Without Repeating Characters (O(n)算法)问题
problem: Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length...
分类:编程语言   时间:2015-03-16 16:25:54    阅读次数:155
Longest Common Prefix
Longest Common Prefix问题:Write a function to find the longest common prefix string amongst an array of strings.思路: 简单的string运算我的代码:public class Soluti....
分类:其他好文   时间:2015-03-15 18:11:46    阅读次数:86
Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:其他好文   时间:2015-03-15 13:43:07    阅读次数:134
Leetcode-3 Longest Substring Without Repeating Characters
?? 1.3- Longest Substring Without Repeating Characters Given a string,find the length of the longest substring without repeating characters. Forexample, the longest substring without repeating l...
分类:其他好文   时间:2015-03-14 18:40:32    阅读次数:123
LeetCode -- Longest Valid Parentheses(Dynamic Programming)
题目地址:https://leetcode.com/problems/longest-valid-parentheses/Given a string containing just the characters ‘(’ and ‘)’, find the length of the longest valid (well-formed) parentheses substring. For “(...
分类:其他好文   时间:2015-03-14 16:55:18    阅读次数:188
SPOJ Problem 1437:Longest path in a tree
求树的最长链,BFS和DFS都可以,时间复杂度O(n)#include#includeint tot,vt[20005],nxt[20005],a[20005];bool vis[10005];int n,i,j,xx,yy,s,ma,r;void search(int x,int dep){ .....
分类:其他好文   时间:2015-03-14 10:58:28    阅读次数:207
[LeetCode] 032. Longest Valid Parentheses (Hard) (C++)
[LeetCode] 032. Longest Valid Parentheses (Hard) (C++)...
分类:编程语言   时间:2015-03-13 16:35:05    阅读次数:170
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!