码迷,mamicode.com
首页 >  
搜索关键字:longest ordered subs    ( 3212个结果
Lintcode:Longest Common Subsequence 解题报告
Longest Common SubsequenceGiven two strings, find the longest comment subsequence (LCS).Your code should return the length of LCS.样例For "ABCD" and "ED...
分类:其他好文   时间:2015-01-03 15:55:06    阅读次数:177
LeetCode Longest Palindromic Substring
Longest Palindromic Substring   Question  Solution  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-01-03 00:57:31    阅读次数:272
[LeetCode]3 Longest Substring Without Repeating Characters
https://oj.leetcode.com/problems/longest-substring-without-repeating-characters/http://fisherlei.blogspot.com/2012/12/leetcode-longest-substring-without.htmlpublicclassSolution{ publicintlengthOfLongestSubstring(Strings){ if(s==null||s.isEmpty()) return0;/..
分类:其他好文   时间:2015-01-02 16:16:01    阅读次数:119
[LeetCode]5 Longest Palindromic Substring
https://oj.leetcode.com/problems/longest-palindromic-substring/http://fisherlei.blogspot.com/2012/12/leetcode-longest-palindromic-substring.htmlpublicclassSolution{ publicStringlongestPalindrome(Strings){ //SolutionA: returnlongestPalindrome_Center(s); } ..
分类:其他好文   时间:2015-01-02 16:15:08    阅读次数:122
[LeetCode]14 Longest Common Prefix
https://oj.leetcode.com/problems/longest-common-prefix/http://fisherlei.blogspot.com/2012/12/leetcode-longest-common-prefix.htmlpublicclassSolution{ publicStringlongestCommonPrefix(String[]strs) { //Validations if(strs==null||strs.length==0) return""; if(s..
分类:其他好文   时间:2015-01-02 16:13:25    阅读次数:103
LeetCode Longest Valid Parentheses
Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring.For"(()", the longest...
分类:其他好文   时间:2015-01-01 21:10:28    阅读次数:149
LintCode-Longest Common Subsequence
Given two strings, find the longest comment subsequence (LCS).Your code should return the length of LCS.ExampleFor "ABCD" and "EDCA", the LCS is "A" (...
分类:其他好文   时间:2015-01-01 00:12:17    阅读次数:122
LintCode-Longest Common Substring
Given two strings, find the longest common substring.Return the length of it.NoteThe characters in substring should occur continiously in original str...
分类:其他好文   时间:2015-01-01 00:01:16    阅读次数:339
【编程】leetcode_longest substring without repeating characters
class Solution {public: int lengthOfLongestSubstring(string s) { char cHash[256]; int cnt = 0, maxCnt = 0; int i, j, k, sSz = ...
分类:其他好文   时间:2014-12-31 16:05:02    阅读次数:143
【leetcode】Longest Consecutive Sequence
Longest Consecutive SequenceGiven an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given[100, 4...
分类:其他好文   时间:2014-12-30 21:53:34    阅读次数:189
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!