摘要: 问题描述Given preorder and inorder traversal of a tree, construct the binary tree.解决思路首先确定根节点,然后确定左右子树的节点数目。依次递归即可。假设输入的序列均合法。程序public class BuildTreeFrom... 阅读全文
posted @ 2015-07-18 11:04 Chapter 阅读(153) 评论(0) 推荐(0) 编辑