码迷,mamicode.com
首页 >  
搜索关键字:substring with conca    ( 3920个结果)
[LeetCode] Palindrome Partitioning II
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. ...
分类:其他好文   时间:2015-04-05 22:00:12    阅读次数:127
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 l...
分类:其他好文   时间:2015-04-05 21:54:11    阅读次数:134
Java和Android对Mac地址加1减1
Java和Android对Mac地址加1或者减1 /** * Mac + 1 * @author YOLANDA * @return */ public static String getMacAdd1(String mac){ String lastChar = mac.substring(mac.length() - 1).toUpperCase(Locale.get...
分类:移动开发   时间:2015-04-05 16:06:13    阅读次数:728
Palindrome Partitioning——LeetCode
Given a strings, partitionssuch that every substring of the partition is a palindrome.Return all possible palindrome partitioning ofs.For example, giv...
分类:其他好文   时间:2015-04-05 15:53:15    阅读次数:107
UVa 11468 (AC自动机 概率DP) Substring
将K个模板串构成一个AC自动机,那些能匹配到的单词节点都称之为禁止节点。然后问题就变成了在Tire树上走L步且不经过禁止节点的概率。根据全概率公式用记忆化搜索求解。 1 #include 2 #include 3 #include 4 using namespace std; 5 ...
分类:其他好文   时间:2015-04-05 15:51:35    阅读次数:120
[河南省ACM省赛-第四届] Substring (nyoj 308)
练习使用字符串函数了。 1、字串的反转也是它的字串,2、最长,3、最先出现 string: #include #include #include #include #include using namespace std; int main() { int t, n; string s; cin>>...
分类:其他好文   时间:2015-04-04 18:02:26    阅读次数:105
javascript之包装对象
var?s?=?"hello?world!";???????????? var?word?=?s.substring(s.indexOf("?")+1,s.length); 字符串既然不是对象,为什么它会有属性呢?只要引用了字符串s的属性,javascript就会将字符串值通...
分类:编程语言   时间:2015-04-03 22:35:36    阅读次数:224
LeetCode系列字符串操作(一)ZigZag输出,寻找最大不重复字串长度。
ZigZag Conversion   The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility) ...
分类:其他好文   时间:2015-04-03 17:31:12    阅读次数:160
Longest Palindromic Substring
Longest Palindromic Substring问题:Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and th...
分类:其他好文   时间:2015-04-03 17:06:38    阅读次数:112
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!