面试题7——二叉树重建

题目:输入某一个二叉树的前序和中序遍历,重建该二叉树,返回二叉树的根节点 #include<stdio.h> #include<assert.h> #include<malloc.h> typedef int DataType; typedef struct BinTreeNode{ struct BinTreeNode *pLeft; struct BinTreeNode *pRigh
相关文章
相关标签/搜索