
递增子序列
文章平均质量分 75
jmspan
这个作者很懒,什么都没留下…
展开
-
LeetCode 334. Increasing Triplet Subsequence(长度为3的递增子序列)
原题网址:https://leetcode.com/problems/increasing-triplet-subsequence/Given an unsorted array return whether an increasing subsequence of length 3 exists or not in the array.Formally the functio原创 2016-04-29 14:37:07 · 752 阅读 · 0 评论 -
LeetCode 300. Longest Increasing Subsequence(最长递增子序列)
原题网址:https://leetcode.com/problems/longest-increasing-subsequence/Given an unsorted array of integers, find the length of longest increasing subsequence.For example,Given [10, 9, 2, 5, 3,原创 2016-04-17 06:43:52 · 2552 阅读 · 0 评论 -
LeetCode 128. Longest Consecutive Sequence(最长连续序列)
原题网址:https://leetcode.com/problems/longest-consecutive-sequence/Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given [100, 4,原创 2016-05-27 00:26:15 · 847 阅读 · 0 评论 -
LeetCode 354. Russian Doll Envelopes(信封包装)
原题网址:https://leetcode.com/problems/russian-doll-envelopes/You have a number of envelopes with widths and heights given as a pair of integers (w, h). One envelope can fit into another if and on原创 2016-06-16 06:39:42 · 2620 阅读 · 0 评论