Description
The repetition number of a string is defined as the maximum number R such that the string can be partitioned into R same consecutive substrings. For example, the repetition number of ...
分类:
其他好文 时间:
2014-09-28 19:34:34
阅读次数:
417
Given a string s, partition s such that every substring of the partition is a palindrome.
Return all possible palindrome partitioning of s.
For example, given s = "aab",
Return
[
["aa","...
分类:
其他好文 时间:
2014-09-27 20:16:10
阅读次数:
211
说说你所熟知的MSSQL中的substring函数说说你所熟知的MSSQL中的substring函数函数签名:substring --expression (varchar,nvarchar,text,ntext,varbinary,or image) --Starting positi...
分类:
数据库 时间:
2014-09-27 19:42:40
阅读次数:
187
算法思想:http://www.cnblogs.com/lichen782/p/leetcode_minimum_window_substring_3.html 1 public class Solution { 2 public String minWindow(String S, Str...
1198. SubstringConstraintsTime Limit: 1 secs, Memory Limit: 32 MBDescriptionDr lee cuts a string S into N pieces,s[1],…,s[N].Now, Dr lee gives you the...
分类:
其他好文 时间:
2014-09-26 03:29:48
阅读次数:
253
function parseQueryString(url){ var obj={}; var keyvalue=[]; var key="",value=""; var paraString=url.substring(url.indexOf("?")+1,url.l...
分类:
Web程序 时间:
2014-09-25 13:45:08
阅读次数:
176
今天有幸去搜狗霸笔,有一题很有意思
String str1 = "test for sougou";
String str2 = str1.substring(5);
考点是str2是否生成新的字符数组来保存"for sougou"
当时我认为String内部是封装了一个char[],无法像cpp一样首地址加上一个数字来做到char[]的重用
新的字符串必须进行一次ArrayCop...
分类:
移动开发 时间:
2014-09-25 02:24:38
阅读次数:
241
declare 定义变量 set 为变量赋值SUBSTRING()函数SUBSTRING ( expression, start, length )expression 字符串、二进制字符串、文本、图像、列或包含列的表达式。请勿使用包含聚合函数的表达式。start 整数或可以隐式转换为 int 的表...
分类:
数据库 时间:
2014-09-24 20:31:47
阅读次数:
211
字符串匹配的双重递归式写法
字符串的匹配有很高效的KMP、Sunday等算法,可供使用。下面使用的匹配算法本质上是朴素的,但它的双重递归式的写法仍然值得借鉴。...
分类:
其他好文 时间:
2014-09-24 13:19:46
阅读次数:
158
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
编程语言 时间:
2014-09-22 23:29:43
阅读次数:
231