码迷,mamicode.com
首页 >  
搜索关键字:longest consecutive    ( 3017个结果)
hdu1024 Max Sum Plus Plus
Problem Description Now I think you have got an AC in Ignatius.L's "Max Sum" problem. To be a brave ACMer, we always challenge ourselves to more difficult problems. Now you are faced with a more difficult problem. Given a consecutive number sequence S1, S...
分类:其他好文   时间:2015-02-08 09:09:37    阅读次数:188
LeetCode 032 Longest Valid Parentheses
题目描述:Longest Valid ParenthesesGiven a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses s...
分类:其他好文   时间:2015-02-07 18:51:04    阅读次数:139
LeetCode 014 Longest Common Prefix
题目描述:Longest Common PrefixWrite a function to find the longest common prefix string amongst an array of strings.代码如下:class Solution {public: string...
分类:其他好文   时间:2015-02-07 15:43:58    阅读次数:181
LeetCode 005 Longest Palindromic Substring
题目描述:Longest Palindromic SubstringGiven a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and ...
分类:其他好文   时间:2015-02-06 23:10:27    阅读次数:133
[LeetCode] Longest Common Prefix
Write a function to find the longest common prefix string amongst an array of strings.思路: 很简单,其他字符串和第一个字符串比较,一个一个字符比较,反正最长不会超过第一个字符串的长度。class Solution...
分类:其他好文   时间:2015-02-06 13:06:07    阅读次数:121
[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 longes...
分类:其他好文   时间:2015-02-06 01:55:18    阅读次数:153
POJ 2533 Longest Ordered Subsequence
题目链接:http://poj.org/problem?id=2533 Longest Ordered Subsequence Time Limit: 2000MS   Memory Limit: 65536K Total Submissions: 35605   Accepted: 15621 Description ...
分类:其他好文   时间:2015-02-05 23:24:40    阅读次数:288
LeetCode104——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 leaf node. 难度系数: 容易 实现 int maxDepth(Tr...
分类:其他好文   时间:2015-02-05 16:28:31    阅读次数:119
leetcode 32. 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-02-05 00:41:45    阅读次数:200
LeetCode --- 32. Longest Valid Parentheses
题目链接: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 paren...
分类:其他好文   时间:2015-02-04 23:22:51    阅读次数:189
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!