码迷,mamicode.com
首页 >  
搜索关键字:longest consecutive    ( 3017个结果)
LeetCode之“动态规划”:Longest Valid Parentheses
题目链接 题目要求: Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring. For...
分类:其他好文   时间:2015-06-12 23:52:34    阅读次数:120
Longest Palindromic Substring
1. Question求最长回文子串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-06-12 23:49:08    阅读次数:228
leetcode之Maximum Depth of Binary Tree 以及Balanced 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...
分类:其他好文   时间:2015-06-12 23:40:02    阅读次数:121
[LeetCode] Longest Substring with At Most Two Distinct Characters
Problem Description:Given a string, find the length of the longest substring T that contains at most 2 distinct characters.For example, Given s =“eceb...
分类:其他好文   时间:2015-06-12 22:04:43    阅读次数:103
[LeetCode] Longest Consecutive Sequence
This problem is not very intuitive at first glance. However, the final idea should be very self-explanatory. You visit each element in nums, and then ...
分类:其他好文   时间:2015-06-12 19:10:09    阅读次数:103
Longest Substring Without Repeating Characters
1. Question求最长无重复字符子串。Given a string, find the length of the longest substring without repeating characters. For example, the longest substring withou...
分类:其他好文   时间:2015-06-12 16:48:13    阅读次数:118
LeetCode 5:Longest Palindromic Substring(最长回文串)
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:其他好文   时间:2015-06-12 00:33:10    阅读次数:122
Leetcode[104]-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.求最大深度,用递归的方法/** * Definition for a binary...
分类:其他好文   时间:2015-06-11 19:26:53    阅读次数:126
Latched 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 letters fo...
分类:其他好文   时间:2015-06-11 18:25:40    阅读次数:104
bzoj 1318: [Spoj744] Longest Permutation 智商题
1318: [Spoj744] Longest PermutationTime Limit: 10 SecMemory Limit: 162 MBSubmit: 361Solved: 215[Submit][Status][Discuss]Description给你一个序列A含有n个正整数(1#in...
分类:其他好文   时间:2015-06-11 18:23:22    阅读次数:141
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!