摘要: Given a binary tree, flatten it to a linked list in-place. For example,Given The flattened tree should look like: 阅读全文
posted @ 2017-09-28 11:05 Tsunami_lj 阅读(142) 评论(0) 推荐(0) 编辑
摘要: Given preorder and inorder traversal of a tree, construct the binary tree. Note:You may assume that duplicates do not exist in the tree. 解题思路:最经典的递归,已 阅读全文
posted @ 2017-09-28 00:08 Tsunami_lj 阅读(98) 评论(0) 推荐(0) 编辑