码迷,mamicode.com
首页 >  
搜索关键字:longest substring    ( 5540个结果
[LeetCode] Substring with Concatenation of All Words(good)
You are given a string, S, and a list of words, L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatena...
分类:其他好文   时间:2014-08-26 16:45:16    阅读次数:250
[LeetCode] Longest Valid Parentheses
Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.For "(()", the lon...
分类:其他好文   时间:2014-08-25 11:47:54    阅读次数:172
javascript---函数substring(position1,position2),slice(position1,position2),substr(position1,length)
重要事项:与slice()和substr()方法不同的是,substring() 不接受负的参数。substring(position1,position2) 方法用于提取字符串中介于两个指定下标之间的字符。包括position1的字符,不包括position2的字符(position从0开始)。例...
分类:编程语言   时间:2014-08-25 11:24:04    阅读次数:182
LeetCode: Palindrome Partition
LeetCode: Palindrome PartitionGiven a string s, partition s such that every substring of the partition is a palindrome.Return all possible palindrome ...
分类:其他好文   时间:2014-08-24 19:21:22    阅读次数:196
【Leet Code】Longest Palindromic Substring ——传说中的Manacher算法
Longest Palindromic Substring  Total Accepted: 17474 Total Submissions: 84472My Submissions Given a string S, find the longest palindromic substring in S. You may assume that the maximum l...
分类:其他好文   时间:2014-08-24 16:46:02    阅读次数:190
【Leet Code】Longest Substring Without Repeating Characters
Longest Substring Without Repeating Characters  Total Accepted: 20506 Total Submissions: 92223My Submissions Given a string, find the length of the longest substring without repeating char...
分类:其他好文   时间:2014-08-23 21:42:21    阅读次数:359
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...
分类:其他好文   时间:2014-08-23 21:35:21    阅读次数:264
Palindrome Partitioning系列
Palindrome PartitioningGiven a strings, partitionssuch that every substring of the partition is a palindrome.Return all possible palindrome partitioni...
分类:其他好文   时间:2014-08-23 21:34:11    阅读次数:288
POJ 3693 Maximum repetition substring(后缀数组神题)
POJ 3693 Maximum repetition substring 题目链接 题意:给定一个字符串,求出其子串中,重复次数最多的串,如果有相同的,输出字典序最小的 思路:枚举长度l,把字符串按l分段,这样对于长度为l的字符串,肯定会包含一个分段位置,这样一来就可以在每个分段位置,往后做一次lcp,求出最大匹配长度,然后如果匹配长度有剩余,看剩余多少,就往前多少位置再做一次...
分类:其他好文   时间:2014-08-23 19:05:11    阅读次数:215
js处理url的技巧和归纳
var url = 'http://www.deikang.com/index.php?tel=15811296111&status=1&id=100';var n = url.indexOf('?');//alert(n);var m = url.substring(n + 1, url.leng...
分类:Web程序   时间:2014-08-23 13:59:20    阅读次数:148
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!