LintCode
文章平均质量分 80
Chole1122
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Binary Search
Binary search is a famous question in algorithm. For a given sorted array (ascending order) and a target number, find the first index of this number in O(log n) time complexity. If the target nu原创 2014-06-25 10:19:12 · 567 阅读 · 0 评论 -
Recover Rotated Sorted Array
Given a rotated sorted array, recover it to sorted array in-place. 样例 [4, 5, 1, 2, 3] -> [1, 2, 3, 4, 5] 挑战 Expand In-place, O(1) extra space and O(n) time.原创 2014-06-28 13:57:26 · 2505 阅读 · 1 评论 -
Longest Increasing Subsequence
public class Solution { /** * @param nums: The integer array * @return: The length of LIS (longest increasing subsequence) */ /** * state: lis[i] 表示前i个数字中,以第i 个数结尾的LI原创 2014-06-20 13:01:42 · 954 阅读 · 0 评论
分享