码迷,mamicode.com
首页 >  
搜索关键字:longest substring    ( 5540个结果
【LeetCode】Substring with Concatenation of All Words
Substring with Concatenation of All WordsYou are given a string,S, and a list of words,L, that are all of the same length. Find all starting indices o...
分类:其他好文   时间:2014-12-18 22:14:15    阅读次数:310
leetcode----------Maximum Depth of Binary Tree
题目Maximum Depth of Binary Tree通过率44.2%难度EasyGiven a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest pat...
分类:其他好文   时间:2014-12-18 20:28:05    阅读次数:214
JS 删除字符串最后一个字符的几种方法
字符串:string s = "1,2,3,4,5,"目标:删除最后一个 ","方法:1、用的最多的是Substring,这个也是我一直用的s=s.Substring(0,s.Length-1)2、用 RTrim,这个我原来只知道用来删除最后的空格,也没有仔细看过其它的用法,才发现可以直接trim掉...
分类:Web程序   时间:2014-12-18 15:09:01    阅读次数:127
leetcode------Maximum Depth of Binary Tree
标题:Maximum Depth of Binary Tree通过率:44.2%难度:简单Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest pa...
分类:其他好文   时间:2014-12-18 15:05:18    阅读次数:153
【LeetCode】Longest Valid Parentheses
Longest Valid ParenthesesGiven a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substr...
分类:其他好文   时间:2014-12-18 11:48:19    阅读次数:158
[Swift]如何使用Range截取子字符串
原文:How To Find A Substring In Range of a Swift String Swift中的Ranges和Objective-C中的NSRange有很大的不同,我发现在处理Swift中Ranges相关的问题的时候,总是要花费比我想象的更多的时间。不过,现在回...
分类:编程语言   时间:2014-12-18 07:00:04    阅读次数:184
九度OJ 1042 Coincidence (动态规划求最长公共子序列)
题目1042:Coincidence 时间限制:1 秒 内存限制:32 兆 特殊判题:否 提交:1689 解决:898 题目描述: Find a longest common subsequence of two strings. 输入: First and second line of each input case co...
分类:其他好文   时间:2014-12-18 01:42:32    阅读次数:162
Longest Substring Without Repeating Characters
int longestSubString(char* arr, int len){ if (arr == NULL || len <= 0) return 0; int i = 0, j = 0; int maxLen = 0; bool exist[256] ...
分类:其他好文   时间:2014-12-17 22:34:06    阅读次数:177
【leetcode】 Longest Valid Parentheses (hard)★
Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring.For"(()", the longest...
分类:其他好文   时间:2014-12-17 17:55:07    阅读次数:160
Longest Palindromic Substring(最长回文子串)
题目描述: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 one unique l...
分类:其他好文   时间:2014-12-17 16:10:40    阅读次数:167
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!