码迷,mamicode.com
首页 >  
搜索关键字:longest consecutive    ( 3017个结果)
#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-04-07 21:31:44    阅读次数:120
【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 i...
分类:其他好文   时间:2015-04-06 20:21:52    阅读次数:113
【哈希表】Longest Consecutive Sequence
题目: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]...
分类:其他好文   时间:2015-04-06 17:22:41    阅读次数:160
UVA 11488(Hyper Prefix Sets-Trie统计)
Pre x goodness of a set string is length of longest common pre x*number of strings in the set. For example the pre x goodness of the set f000,001,0011g is 6.You are given a set of binary strings. Fin...
分类:其他好文   时间:2015-04-06 01:07:22    阅读次数:178
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 l...
分类:其他好文   时间:2015-04-05 21:54:11    阅读次数:134
Longest Valid Parentheses
https://leetcode.com/problems/longest-valid-parentheses/Given a string containing just the characters'('and')', find the length of the longest valid (...
分类:其他好文   时间:2015-04-05 21:38:33    阅读次数:136
LeetCode12~14 Integer to Roman/Roman to Integer/Longest Common Prefix
一:Integer to Roman 题目: Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999. 链接:https://leetcode.com/problems/integer-to-roman/ 分析:此题...
分类:其他好文   时间:2015-04-05 16:02:09    阅读次数:156
【leetcode】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...
分类:其他好文   时间:2015-04-04 22:22:21    阅读次数:229
学习笔记:LeetCode104:Maximum Depth of Binary Tree
LeetCode104:Maximum Depth of Binary TreeGiven a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path fr...
分类:其他好文   时间:2015-04-04 11:52:56    阅读次数:93
hdu 1698 Just a Hook 线段树区间更新
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1698Let us number the consecutive metallic sticks of the hook from 1 to N. For each operation, Pudge ca...
分类:其他好文   时间:2015-04-03 23:45:47    阅读次数:150
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!