摘要: Remove Duplicates from Sorted Array IGiven a sorted array, remove the duplicates in place such that each element appear only once and return the new l... 阅读全文
posted @ 2014-05-18 19:50 linyx 阅读(124) 评论(0) 推荐(0) 编辑
摘要: Search in Rotated Sorted Array ISuppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 ... 阅读全文
posted @ 2014-05-18 19:36 linyx 阅读(216) 评论(0) 推荐(0) 编辑
摘要: Jump Game IGiven an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents ... 阅读全文
posted @ 2014-05-18 14:53 linyx 阅读(149) 评论(0) 推荐(0) 编辑
摘要: Combination Sum IGiven a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T... 阅读全文
posted @ 2014-05-18 11:28 linyx 阅读(162) 评论(0) 推荐(0) 编辑
摘要: Construct Binary Tree from Preorder and Inorder TraversalGiven preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume... 阅读全文
posted @ 2014-05-18 00:38 linyx 阅读(208) 评论(0) 推荐(0) 编辑