码迷,mamicode.com
首页 >  
搜索关键字:longest substring    ( 5540个结果
LeetCode之longst Consecutive Sequence
题目:Given an unsorted array of integers, find the length of the longest consecutive elements sequence.             For example, Given [100, 4, 200, 1, 3, 2], The longest consecutive elements sequence ...
分类:其他好文   时间:2015-04-27 21:50:24    阅读次数:142
【LeetCode】003 Longest Substring Without Repeating Characters
题目:LeetCode 003 Longest Substring Without Repeating Characters题意:给一个字符串,找到一个没有重复字符的最长子串。样例:”bbbbb” 返回”b”的长度1;”abcabcbb”返回”abc”的长度3。思路:动态规划。dp[i]表示以第i个...
分类:其他好文   时间:2015-04-26 18:15:18    阅读次数:117
C#课后小试5
1.string相关函数我分别尝试了compare substring split函数,如上图示。compare函数会比较输入是两个string,然后返回一个int值显示结果。substring可以读取string里的一部分,(开始索引,索引个数)。split可以对string按照给出的条件分割。2...
分类:Windows程序   时间:2015-04-26 18:05:02    阅读次数:159
Leetcode: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 longest palindromic substring. 基本思路:回文字符串显然有个特征是沿...
分类:其他好文   时间:2015-04-26 16:51:58    阅读次数:142
leetcode_14题——Longest Common Prefix(字符串)
Longest Common PrefixTotal Accepted:44093Total Submissions:169565My SubmissionsQuestionSolutionWrite a function to find the longest common prefix stri...
分类:其他好文   时间:2015-04-26 12:09:13    阅读次数:103
[LeetCode] Substring with Concatenation of All Words
Substring with Concatenation of All Words You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a concaten...
分类:其他好文   时间:2015-04-25 22:50:17    阅读次数:158
Leetcode 解题 Longest Substring without repeating charcater python
原题:Given a string, find the length of the longest substring without repeating characterFor example, the Longest substring without repeating letters fo...
分类:编程语言   时间:2015-04-25 22:41:48    阅读次数:229
LeetCode 14 Longest Common Prefix
Write a function to find the longest common prefix string amongst an array of strings.这题是寻找一组字符串的最长公共前缀,举个例子:“abc” "a"显然lPrefixString = "a",注意检查空串的情况!...
分类:其他好文   时间:2015-04-25 19:48:20    阅读次数:114
Java [leetcode 5] 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...
分类:编程语言   时间:2015-04-25 14:54:13    阅读次数:145
Java [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 repeating lette...
分类:编程语言   时间:2015-04-25 14:50:46    阅读次数:131
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!