题目描述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
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 PrefixWrite a function to find the longest common prefix string amongst an array of strings.求一组string的最长公共前缀想法:找到最短的那个,然后依次对比典型的字...
分类:
其他好文 时间:
2015-06-10 15:28:49
阅读次数:
107
leetcode中有几道题使用同一个思路,大致是先维护一个窗口,每次只移动窗口左侧或者右侧的边界,然后针对这个窗口内的元素进行处理。这种方式使用两个指针,可以将问题的运行时间降到O(n)内。Longest Substring Without Repeating Characters:https://...
分类:
其他好文 时间:
2015-06-10 06:34:45
阅读次数:
412
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
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
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
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
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(奇因子的个数)...
分类:
其他好文 时间:
2015-06-08 15:09:12
阅读次数:
83