2016年8月30日

Convert Sorted Array to Binary Search Tree

摘要: Given an array where elements are sorted in ascending order, convert it to a height balanced BST. 阅读全文

posted @ 2016-08-30 17:20 Sheryl Wang 阅读(102) 评论(0) 推荐(0) 编辑

First Missing Positive

摘要: Given an unsorted integer array, find the first missing positive integer. For example, Given [1,2,0] return 3, and [3,4,-1,1] return 2. Your algorithm 阅读全文

posted @ 2016-08-30 10:34 Sheryl Wang 阅读(107) 评论(0) 推荐(0) 编辑

导航