class Solution(object): def longestValidParentheses(self, s): """ :type s: str :rtype: int """ maxlen=0 s...
分类:
编程语言 时间:
2015-12-16 00:23:48
阅读次数:
221
题目:Given an unsorted array of integers, find the length of longest increasing subsequence.For example,Given[10, 9, 2, 5, 3, 7, 101, 18],The longest in...
分类:
其他好文 时间:
2015-12-15 14:07:26
阅读次数:
201
题目:Write a function to find the longest common prefix string amongst an array of strings.思路:以第一个字符串为基准,然后循环比较package string;public class LongestCommon...
分类:
其他好文 时间:
2015-12-15 14:04:40
阅读次数:
115
题目:Given a binary tree, find the length of the longest consecutive sequence path.The path refers to any sequence of nodes from some starting node to a...
分类:
其他好文 时间:
2015-12-15 07:45:15
阅读次数:
175
类:NSObject 、NSString、NSMutableString、NSNumber、NSValue、NSDate、NSDateFormatter、NSRange、Collections:NSSet、NSArray(Ordered、Copy)、NSMutableArray、NSMutableS...
分类:
移动开发 时间:
2015-12-14 21:07:36
阅读次数:
182
题目:Median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of the ...
分类:
其他好文 时间:
2015-12-14 14:03:35
阅读次数:
251
111 - History Grading LCS103 - Stacking Boxes 最多能叠多少个box DAG最长路10405 - Longest Common Subsequence LCS674 - Coin Change 全然背包求方案数10003- Cutting Sticks 区...
分类:
编程语言 时间:
2015-12-10 10:56:51
阅读次数:
208
题目: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 lon...
分类:
其他好文 时间:
2015-12-09 17:18:01
阅读次数:
115
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-12-09 17:06:30
阅读次数:
108
题目:Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters...
分类:
其他好文 时间:
2015-12-08 15:53:31
阅读次数:
151