首先定义一个变量便于下面测试: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
https://leetcode.com/problems/longest-substring-without-repeating-characters/思路:从某点结束所能取到的最早开头是到目前出现倒数第二次的字符的最末位置后一位如图:(S代表起点,T代表终点)abcabcab**S*T假设现在在...
分类:
其他好文 时间:
2015-08-27 13:11:45
阅读次数:
153
--取第一部分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
SUBLEX - Lexicographical Substring Searchno tagsLittle Daniel loves to play with strings! He always finds different ways to have fun with strings! Kno...
分类:
其他好文 时间:
2015-08-27 09:34:52
阅读次数:
173
Longest Substring Without Repeating CharactersGiven a string, find the length of the longest substring without repeating characters. For example, the ...
分类:
编程语言 时间:
2015-08-26 19:56:50
阅读次数:
156
1.>'\x41'<"A" // python也支持这样的写法2.多行字符串alert(`多行字符串测试`);3.length,toUpperCase,toLowerCase,indexOf,subString
分类:
其他好文 时间:
2015-08-26 17:38:54
阅读次数:
106
String可以说是最常用的Java类型之一了,但是最近听说JDK6里面String.substring存在内存泄露的bug,伙惊呆!一起来看看到底是啥情况吧。 这个是可以导致Exception in thread "main" java.lang.OutOfMemoryError: ...
分类:
编程语言 时间:
2015-08-26 14:09:32
阅读次数:
169
Maximum repetition substring
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 8067
Accepted: 2463
Description
The repetition number of a string is defined...
分类:
编程语言 时间:
2015-08-26 14:05:27
阅读次数:
176
palindromeQuestion 1Longest Palindromic SubstringGiven a stringS, find the longest palindromic substring inS. You may assume that the maximum length o...
分类:
其他好文 时间:
2015-08-26 01:31:55
阅读次数:
113