码迷,mamicode.com
首页 >  
搜索关键字:substring with conca    ( 3920个结果)
MITx: 6.00.1x Alphabetical Substrings (python)
Assume s is a string of lower case characters. Write a program that prints the longest substring of s in which the letters occur in alphabetical order. For example, if s = 'azcbobobegghakl', then y...
分类:编程语言   时间:2015-03-03 22:17:49    阅读次数:805
Longest Palindromic Substring
最长回文子串动态规划的方法的参考Palindrome Partitioning (回文子串题)代码:class Solution {public: string longestPalindrome(string s) { int n=s.size(); int dp...
分类:其他好文   时间:2015-03-03 20:39:26    阅读次数:105
Palindrome Partitioning (回文子串题)
Given a strings, partitionssuch that every substring of the partition is a palindrome.Return all possible palindrome partitioning ofs.For example, giv...
分类:其他好文   时间:2015-03-03 18:34:37    阅读次数:132
MITx: 6.00.1x Alphabetical Substrings (python)
Assume s is a string of lower case characters.Write a program that prints the longest substring of s in which the letters occur in alphabetical order....
分类:编程语言   时间:2015-03-03 18:11:29    阅读次数:376
Maximum repetition substring 后缀数组
Maximum repetition substringTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 7578Accepted: 2281DescriptionThe repetition number of a string is...
分类:编程语言   时间:2015-03-03 06:18:08    阅读次数:327
[LeetCode]132.Palindrome Partitioning II
题目Given a string s, partition s such that every substring of the partition is a palindrome.Return the minimum cuts needed for a palindrome partitioning of s.For example, given s = “aab”, Return 1 sinc...
分类:其他好文   时间:2015-03-02 23:58:14    阅读次数:368
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 fo...
分类:其他好文   时间:2015-03-02 23:48:30    阅读次数:157
[LeetCode]131.Palindrome Partitioning
题目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”,”b”],...
分类:其他好文   时间:2015-03-02 22:35:33    阅读次数:149
20150302随笔
1.对象的查找document.title = obj[self.today.substring(0, 7)];不需要以下这么麻烦:$.each(obj , function(index,val){ var month = self.today.substring(0,7); if(in...
分类:其他好文   时间:2015-03-02 18:29:48    阅读次数:126
LeetCode: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 fo...
分类:其他好文   时间:2015-03-02 18:25:51    阅读次数:154
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!