摘要: The problem:Given an array where elements are sorted in ascending order, convert it to a height balanced BST.My analysis:The recursion is the best way... 阅读全文
posted @ 2015-01-07 23:21 airforce 阅读(122) 评论(0) 推荐(0) 编辑
摘要: The problem:Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant... 阅读全文
posted @ 2015-01-07 11:24 airforce 阅读(195) 评论(0) 推荐(0) 编辑
摘要: The problem:Sort a linked list inO(nlogn) time using constant space complexity.My analysis:The is problem could be elegantly solved by using merge.The... 阅读全文
posted @ 2015-01-07 01:32 airforce 阅读(125) 评论(0) 推荐(0) 编辑