递增
文章平均质量分 76
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 · 715 阅读 · 0 评论 -
LeetCode 162. Find Peak Element(查找峰值)
原题网址:https://leetcode.com/problems/find-peak-element/ A peak element is an element that is greater than its neighbors. Given an input array where num[i] ≠ num[i+1], find a peak element and ret原创 2016-05-25 01:40:48 · 2159 阅读 · 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 · 817 阅读 · 0 评论 -
LeetCode 360. Sort Transformed Array(计算函数)
原题网址:https://leetcode.com/problems/sort-transformed-array/ Given a sorted array of integers nums and integer values a, b and c. Apply a function of the form f(x) = ax2 + bx + c to each element原创 2016-06-17 11:42:23 · 1247 阅读 · 0 评论 -
LeetCode 313. Super Ugly Number(超级丑的数字)
原题网址:https://leetcode.com/problems/super-ugly-number/ Write a program to find the nth super ugly number. Super ugly numbers are positive numbers whose all prime factors are in the given prime原创 2016-04-22 01:41:57 · 1448 阅读 · 0 评论