摘要:
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST. 涉及到二叉树的问题用递归的方法很容易理解。这个问题要求把一个升序排序的链表转换为 阅读全文
posted @ 2016-04-21 10:00
Black_Knight
阅读(213)
评论(0)
推荐(0)
摘要:
Given a binary tree, flatten it to a linked list in-place. For example,Given The flattened tree should look like: 阅读全文
posted @ 2016-04-21 08:58
Black_Knight
阅读(167)
评论(0)
推荐(0)

浙公网安备 33010602011771号