已知前序、中序,递归创建二叉树(C语言)

#include <stdio.h> #include <malloc.h> int pre[]={1,2,4,5,3,6,7};//前序序列 int ino[]={4,2,5,1,6,3,7};//中序序列 struct BTree { struct BTree *left,*right; int data; };//树节点定义 void BuildBTree(struct BT
相关文章
相关标签/搜索