码迷,mamicode.com
首页 >  
搜索关键字:longest consecutive    ( 3017个结果)
最长回文子串-LeetCode 5 Longest Palindromic Substring
题目描述Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longes...
分类:其他好文   时间:2015-06-11 12:36:10    阅读次数:110
LeetCode 180:Consecutive Numbers
Write a SQL query to find all numbers that appear at least three times consecutively.+----+-----+| Id | Num |+----+-----+| 1 | 1 || 2 | 1 || 3 ...
分类:其他好文   时间:2015-06-10 19:08:54    阅读次数:1558
No.14 Longest Common Prefix
No.14 Longest Common PrefixWrite a function to find the longest common prefix string amongst an array of strings.求一组string的最长公共前缀想法:找到最短的那个,然后依次对比典型的字...
分类:其他好文   时间:2015-06-10 15:28:49    阅读次数:107
leetcode中几道与维护窗口相关的问题
leetcode中有几道题使用同一个思路,大致是先维护一个窗口,每次只移动窗口左侧或者右侧的边界,然后针对这个窗口内的元素进行处理。这种方式使用两个指针,可以将问题的运行时间降到O(n)内。Longest Substring Without Repeating Characters:https://...
分类:其他好文   时间:2015-06-10 06:34:45    阅读次数:412
Maximum Depth of Binary Tree
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:其他好文   时间:2015-06-10 06:33:56    阅读次数:99
Longest Substring Without Repeating Characters2015年6月9日
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:其他好文   时间:2015-06-09 16:59:44    阅读次数:135
[LeetCode] Longest Palindromic Substring
This problem has a long story. There are just too many solutions on the web and it can be studied for a long time before you fully grasp it. Morever, ...
分类:其他好文   时间:2015-06-08 22:53:39    阅读次数:161
leetcode--3
1. 题目:Longest Substring Without Repeating CharactersGiven a string, find the length of the longest substring without repeating characters. For example...
分类:其他好文   时间:2015-06-08 21:19:56    阅读次数:106
[LeetCode] 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. For “...
分类:其他好文   时间:2015-06-08 17:32:43    阅读次数:136
LIGHT OJ 1278 Sum of Consecutive Integers(奇因子的个数)
LIGHT OJ 1278 Sum of Consecutive Integers(奇因子的个数)...
分类:其他好文   时间:2015-06-08 15:09:12    阅读次数:83
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!