码迷,mamicode.com
首页 >  
搜索关键字:longest substring    ( 5540个结果
Longest Consecutive Sequence 数组连续数字的情况
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
pat1040. Longest Symmetric String (25)
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
[LeetCode][JavaScript]Longest Palindromic Substring
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
[LeetCode]Maximum Depth of Binary Tree
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
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....
分类:其他好文   时间:2015-08-29 06:21:42    阅读次数:190
批量更新逗号隔开的名称 (部门里面将多个用逗号隔开的ID转换成用逗号隔开的名称)(mysql)
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
[LeetCode] 14 - Longest Common Prefix
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
FOJ 题目 2075 Substring (后缀数组求出现k次的最小字典序子串)
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的学习。
今天在工作的过程中,看到js中两个双胞胎函数。分别是substring与substr。顿时被两个可恶的家伙给迷惑住了,不知道具体有什么作用。、先来看看substring手册是怎么介绍的。手册解释的还是比较清楚的。不过还是用我的自己话给总结一下,顺便来个栗子巩固一下。在这里你可以把字符串当成类数组的对...
分类:Web程序   时间:2015-08-27 21:01:28    阅读次数:188
poj 2533 最长上升子序列
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!