摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文