Longest Consecutive Sequence
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.
For example,
Given [100, 4, 200, 1, 3, 2],
The longest consecu...
分类:
编程语言 时间:
2015-08-30 23:15:40
阅读次数:
211
1040. Longest Symmetric String (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven a string, you are supposed to output the length of ...
分类:
其他好文 时间:
2015-08-30 06:25:40
阅读次数:
139
Longest Palindromic SubstringGiven a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there...
分类:
编程语言 时间:
2015-08-29 22:58:51
阅读次数:
160
Maximum Depth of Binary TreeGiven a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root ...
分类:
其他好文 时间:
2015-08-29 16:48:03
阅读次数:
173
题目: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....
分类:
其他好文 时间:
2015-08-29 06:21:42
阅读次数:
190
update dept b, (select group_concat(t.deptId), group_concat(d.deptName separator '/') as dName, t.id, t.deptName from (select substring_index(substring_index(a.deptId,',',b.help_topic_id+1),',',-1) as...
分类:
数据库 时间:
2015-08-28 17:53:14
阅读次数:
908
Write a function to find the longest common prefix string amongst an array of strings.class Solution { public: string longestCommonPrefix(vect...
分类:
其他好文 时间:
2015-08-28 12:47:23
阅读次数:
138
Problem 2075 Substring
Accept: 70 Submit: 236
Time Limit: 1000 mSec Memory Limit : 65536 KB
Problem Description
Given a string, find a substring of it which the original string conta...
分类:
编程语言 时间:
2015-08-27 23:07:16
阅读次数:
1156
今天在工作的过程中,看到js中两个双胞胎函数。分别是substring与substr。顿时被两个可恶的家伙给迷惑住了,不知道具体有什么作用。、先来看看substring手册是怎么介绍的。手册解释的还是比较清楚的。不过还是用我的自己话给总结一下,顺便来个栗子巩固一下。在这里你可以把字符串当成类数组的对...
分类:
Web程序 时间:
2015-08-27 21:01:28
阅读次数:
188
Longest Ordered Subsequence
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 39374
Accepted: 17315
Description
A numeric sequence of ai is ordered if
a1 a2 a...
分类:
其他好文 时间:
2015-08-27 16:42:39
阅读次数:
114