码迷,mamicode.com
首页 >  
搜索关键字:substring with conca    ( 3920个结果)
SPOJ Longest Common Substring II
Longest Common Substring IITime Limit: 2000msMemory Limit: 262144KBThis problem will be judged onSPOJ. Original ID:LCS264-bit integer IO format:%lld J...
分类:其他好文   时间:2015-09-01 10:26:26    阅读次数:219
leetcode3 ongest Substring Without Repeating Characters
刚开始还尼玛各种优化,怕n*n的时间复杂度还通不过,再想能不能简化一下,最后发现暴力破解直接AC,我太高估它了...... 题意就是给你一个字符串,求出这个字符串的最长子串,但是这个子串是有规则的,就是不能有重复的字符,我是从第一个字符开始遍历到最后一个字符,因为最长的子串一定是以其中一个字符为开头,我逐个统计一遍最长子串就OK了,其实刚才我有想了一下,这个其实也不是n*n的时间复杂度,因为字符...
分类:其他好文   时间:2015-09-01 06:57:33    阅读次数:187
[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
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
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
substring、slice、substr的区别
首先定义一个变量便于下面测试:var str = "xx351223441";substring:str.substring(form,to):从字符串里截取下标为form到下标为to的字符串(不包括to对应的字符)alert(str.substring(2,6)) // 3512当form>to....
分类:其他好文   时间:2015-08-27 13:12:53    阅读次数:147
LeetCode 3 Longest Substring Without Repeating Characters 区间,想法 难度:1
https://leetcode.com/problems/longest-substring-without-repeating-characters/思路:从某点结束所能取到的最早开头是到目前出现倒数第二次的字符的最末位置后一位如图:(S代表起点,T代表终点)abcabcab**S*T假设现在在...
分类:其他好文   时间:2015-08-27 13:11:45    阅读次数:153
Sql逗号分隔一个字符串
--取第一部分select SubString('1234,6',0,charindex(',','1234,6',0))--取第二部分select SubString('1234,67',charindex(',','1234,67',0) + 1,len('1234,67') - charind...
分类:数据库   时间:2015-08-27 10:54:20    阅读次数:170
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!