码迷,mamicode.com
首页 >  
搜索关键字:substring with conca    ( 3920个结果)
Java字符串处理函数
substring()它有两种形式,第一种是:String substring(int startIndex)第二种是:String substring(int startIndex,int endIndex)?concat()连接两个字符串?replace()替换它有两种形式,第一种形式用一个字符...
分类:编程语言   时间:2015-08-15 22:46:07    阅读次数:199
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 longest pa...
分类:其他好文   时间:2015-08-15 21:22:37    阅读次数:112
sql server 数据库的操作
Technorati 标记: sql截取,sql修改把一个字段的部分取出来,插入到新字段 1 update tablename set b = left(a,8) //方法一2 update tablename set b = substring(a,1,8) //方法二 sql server修改一...
分类:数据库   时间:2015-08-15 13:22:51    阅读次数:142
spoj 1811 LCS - Longest Common Substring (后缀自动机)
spoj 1811 LCS - Longest Common Substring 题意: 给出两个串S, T, 求最长公共子串。 限制: |S|, |T| 思路: dp O(n^2) 铁定超时 后缀数组 O(nlog(n)) 在spoj上没试过,感觉也会被卡掉 后缀自动机 O(n) 我们考虑用SAM读入字符串B; 令当前状态为s,同时最大匹配长度为len;...
分类:其他好文   时间:2015-08-14 21:29:35    阅读次数:121
spoj 1812 LCS2 - Longest Common Substring II (后缀自动机)
spoj 1812 LCS2 - Longest Common Substring II 题意: 给出最多n个字符串A[1], ..., A[n], 求这n个字符串的最长公共子串。 限制: 1 |A[i]| 思路: 和spoj 1811 LCS差不多的做法 把其中一个A建后缀自动机 考虑一个状态s, 如果A之外的其他串对它的匹配长度分别是a[1], a[2],...
分类:其他好文   时间:2015-08-14 21:28:39    阅读次数:233
LeetCode -- Substring with Concatenation of All Words
LeetCode -- Substring with Concatenation of All Words...
分类:其他好文   时间:2015-08-14 13:45:22    阅读次数:386
python中index()与find()的区别
起因:在排查错误时定位在判断语句这一行:if testlist.index('T'): 报错:ValueError: substring not found。原来是index()和find()没区分清楚。find()查找失败会返回-1,不会影响程序运行。 1.index描述 Python index() 方法检测字符串中是否包含子字符串 str ,如果指定 beg(开始) 和 end...
分类:编程语言   时间:2015-08-14 11:51:03    阅读次数:143
js substring和substr的区别实例,一目了然
var?str?=?"0123456789"; alert(str.substring(0));------------"0123456789" alert(str.substring(5));------------"56789" alert(str.substring(10));-----------"" alert(str.substring(12));-----------"...
分类:Web程序   时间:2015-08-13 18:23:46    阅读次数:157
[Leetcode 3, Medium] Longest Substring Without Repeating Characters
[Leetcode 3, Medium] Longest Substring Without Repeating Characters
分类:其他好文   时间:2015-08-13 14:18:23    阅读次数:98
mysql substring_index
select * from tablename where substring_index(field1,'_',-1)=‘abc'#表中field1的值结构为123_abc
分类:数据库   时间:2015-08-13 13:44:58    阅读次数:143
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!