码迷,mamicode.com
首页 >  
搜索关键字:longest    ( 2697个结果
POJ2533——Longest Ordered Subsequence(简单的DP)
Longest Ordered SubsequenceDescriptionA numeric sequence of ai is ordered if a1 File Name: poj2533.cpp 3 > Author: Enumz 4 > Mail: 369372123@...
分类:其他好文   时间:2014-10-30 16:56:36    阅读次数:164
[LeetCode] Longest 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 sequenc...
分类:其他好文   时间:2014-10-30 12:01:47    阅读次数:221
Leet Code 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 letters for "abcabcbb" is "abc", which the length is 3. For ...
分类:其他好文   时间:2014-10-30 11:46:27    阅读次数:188
POJ 2533 Longest Ordered Subsequence(LIS)
H -LISTime Limit:2000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionA numeric sequence ofaiis ordered ifa1<a2< ... <aN. Let...
分类:其他好文   时间:2014-10-28 23:49:45    阅读次数:261
leetcode Longest Common Prefix
1, 思考过程比较慢,加强锻炼2,空字符串的定义,不能用null3,数组的长度为array.length,而string的长度为函数 string.length()public class Solution { public String longestCommonPrefix(String[...
分类:其他好文   时间:2014-10-27 12:37:47    阅读次数:246
【LeetCode】Longest Palindromic Substring 解题报告
DP、KMP什么的都太高大上了,自己想了个朴素的遍历方法。 【题目】 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 palin...
分类:其他好文   时间:2014-10-26 15:37:32    阅读次数:249
【LeetCode】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 letters for "abcabcbb" is "abc", which the length is...
分类:其他好文   时间:2014-10-26 11:49:53    阅读次数:203
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 valid parentheses substring is "()", ...
分类:其他好文   时间:2014-10-26 11:49:43    阅读次数:185
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, ...
分类:其他好文   时间:2014-10-26 11:40:45    阅读次数:111
Maximum Depth of Binary Tree 二叉树的最大深度
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:其他好文   时间:2014-10-26 07:58:51    阅读次数:161
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!