摘要: Description:Given an array where elements are sorted in ascending order, convert it to a height balanced BST.给一个升序有序的数组,构建一个平衡的二叉查找树。要平衡就要找中间的数来做头结点,递... 阅读全文
posted @ 2015-10-01 16:29 Pickle 阅读(160) 评论(0) 推荐(0) 编辑
摘要: Description:Given an array containingndistinct numbers taken from0, 1, 2, ..., n, find the one that is missing from the array.For example,Givennums=[0... 阅读全文
posted @ 2015-10-01 14:02 Pickle 阅读(160) 评论(0) 推荐(0) 编辑
摘要: Description:Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.noting to say.public class Solut... 阅读全文
posted @ 2015-10-01 12:58 Pickle 阅读(132) 评论(0) 推荐(0) 编辑
摘要: Description:Given a string of numbers and operators, return all possible results from computing all the different possible ways to group numbers and o... 阅读全文
posted @ 2015-10-01 11:21 Pickle 阅读(250) 评论(0) 推荐(0) 编辑