摘要:
Given a binary tree, flatten it to a linked list in-place. For example,Given The flattened tree should look like: 阅读全文
摘要:
Given preorder and inorder traversal of a tree, construct the binary tree. Note:You may assume that duplicates do not exist in the tree. 解题思路:最经典的递归,已 阅读全文