摘要: 题目:Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 6The flattene... 阅读全文
posted @ 2015-09-01 07:26 Hygeia 阅读(158) 评论(0) 推荐(0) 编辑
摘要: Given an array where elements are sorted in ascending order, convert it to a height balanced BST.Solution:If you would have to choose an array element... 阅读全文
posted @ 2015-09-01 07:09 Hygeia 阅读(140) 评论(0) 推荐(0) 编辑