码迷,mamicode.com
首页 > 其他好文 > 详细

leetcode之Construct Binary Tree from Preorder and Inorder Traversal

时间:2015-06-13 22:59:59      阅读:127      评论: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.

给出树的前序和中序遍历序列,构造二叉树,假设树唯一存在。

剑指offer面试题6,重建二叉树

 

leetcode之Construct Binary Tree from Preorder and Inorder Traversal

标签:

原文地址:http://www.cnblogs.com/gracyandjohn/p/4574253.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!