2015年5月12日

LeetCode-Longest Consecutive Sequence

摘要: Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given[100, 4, 200, 1, 3, 2],The longest ... 阅读全文

posted @ 2015-05-12 22:59 linxiong1991 阅读(103) 评论(0) 推荐(0) 编辑

LeetCode-Recover Binary Search Tree

摘要: Two elements of a binary search tree (BST) are swapped by mistake.Recover the tree without changing its structure.Note:A solution using O(n) space is ... 阅读全文

posted @ 2015-05-12 22:00 linxiong1991 阅读(103) 评论(0) 推荐(0) 编辑

LeetCode-Jump Game II

摘要: Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu... 阅读全文

posted @ 2015-05-12 10:57 linxiong1991 阅读(116) 评论(0) 推荐(0) 编辑

导航