Construct Binary Tree from Preorder and Inorder Traversal
摘要:
Given preorder and inorder traversal of a tree, construct the binary tree.这道题是要根据先序遍历和中序遍历构造出一棵二叉树,这道题和上一题是一样的。上一题不过是通过后序遍历和中序遍历构造一棵二叉树。只要将代码稍稍修改即可 1 ... 阅读全文
posted @ 2014-12-29 20:29 luckygxf 阅读(157) 评论(0) 推荐(0) 编辑