码迷,mamicode.com
首页 >  
搜索关键字:longest substring    ( 5540个结果
C# 根据年月获得此月第一天和最后一天,并计算工作日
string str = "2015年3月";int firstIndex = str.IndexOf("年", 0);int secondIndex = str.IndexOf("月", firstIndex + 1);string month = str.Substring(firstIndex...
分类:Windows程序   时间:2015-07-28 17:28:34    阅读次数:198
LeetCode#5 Longest Palindromic Substring
Problem Definition:Given a string S, find the longest palindromic substring in S.You may assume that the maximum length of S is 1000, and there exists...
分类:其他好文   时间:2015-07-28 17:22:12    阅读次数:111
LeetCode 3_Longest Substring Without Repeating Characters
LeetCode 3_Longest Substring Without Repeating Characters 题目描述: Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without re...
分类:其他好文   时间:2015-07-27 23:10:47    阅读次数:106
LeetCode#3 Longest Substring Without Repeating Characters
Problem Definition:Given a string, find the length of the longest substring without repeating characters. For example, the longest substring withoutre...
分类:其他好文   时间:2015-07-27 20:57:10    阅读次数:105
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 longes...
分类:其他好文   时间:2015-07-27 13:02:11    阅读次数:98
[leedcode 132] Palindrome Partitioning II
Given a strings, partitionssuch that every substring of the partition is a palindrome.Return the minimum cuts needed for a palindrome partitioning ofs...
分类:其他好文   时间:2015-07-26 15:25:58    阅读次数:128
[leedcode 131] 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-07-26 15:24:54    阅读次数:98
查询网址字符串参数用数组输出
第一个页面:nihao第二个页面:var str = location.search, ary = str.substring(1).split("&"),//substring str中从第二个字母开始选择,split把字符串改成数组并用&间隔两个数据 endary = [], i = 0,...
分类:编程语言   时间:2015-07-26 12:32:02    阅读次数:131
【LeetCode-面试算法经典-Java实现】【030-Substring with Concatenation of All Words(串联所有单词的子串)】
【030-Substring with Concatenation of All Words(串联所有单词的子串)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  You are given a string, s, and a list of words, words, that are all of the same length. Find all starting...
分类:编程语言   时间:2015-07-26 07:32:10    阅读次数:208
【LeetCode-面试算法经典-Java实现】【032-Longest Valid Parentheses(最长有效括号)】
【032-Longest Valid Parentheses(最长有效括号)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses su...
分类:编程语言   时间:2015-07-26 07:31:04    阅读次数:198
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!