码迷,mamicode.com
首页 >  
搜索关键字:longest    ( 2697个结果
erlang binary
matches -> 始终与最长的进行匹配match -> 始终与第一个进行匹配longest_common_prefix -> 共同的前缀的长度longest_common_suffix -> 共同的后缀的长度binary:part(>, {3,4}) == binary:part(>, {7.....
分类:其他好文   时间:2014-09-03 12:49:16    阅读次数:173
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...
分类:其他好文   时间:2014-09-03 10:59:16    阅读次数:183
poj 2533 & poj 1631 Longest Ordered Subsequence( LIS果题 )
poj 2533 & poj 1631 Longest Ordered Subsequence( LIS果题 )...
分类:其他好文   时间:2014-09-02 09:05:44    阅读次数:232
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 fo...
分类:其他好文   时间:2014-09-02 00:26:44    阅读次数:217
【leetcode】Longest Common Prefix
题目: Write a function to find the longest common prefix string amongst an array of strings. 解析:求字符串数组中所有数组的最长公共前缀,重点考察细节和边界条件,比如: [] :输入字符串数组为空,要判断if (strs .size() == 0) ...
分类:其他好文   时间:2014-08-28 17:02:31    阅读次数:253
LeetCode: Maximum Depth of Binary Tree
LeetCode: Maximum Depth of Binary TreeGiven a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from...
分类:其他好文   时间:2014-08-27 21:54:58    阅读次数:234
24. Longest Consecutive Sequence
两种方法:1. 利用 hash_map 结构,数组有序时查找的思想。 2. 动态的构造有向线段(矢量)(两端为线段始末位置)。若当前点可增加有向线段长度,拓展线段。
分类:其他好文   时间:2014-08-27 01:32:36    阅读次数:162
[LeetCode] Longest Palindromic Substring
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 longes...
分类:其他好文   时间:2014-08-26 19:09:06    阅读次数:153
[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 lon...
分类:其他好文   时间:2014-08-25 11:47:54    阅读次数:172
【Leet Code】Longest Palindromic Substring ——传说中的Manacher算法
Longest Palindromic Substring  Total Accepted: 17474 Total Submissions: 84472My Submissions Given a string S, find the longest palindromic substring in S. You may assume that the maximum l...
分类:其他好文   时间:2014-08-24 16:46:02    阅读次数:190
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!