由先序+中序,中序+後序遍歷序列2種構造二叉樹算法

CreateBT1(char *pre,char *in,int n):由先序序列pre和中序序列in構造二叉樹。 CreateBT2(char *post,char *in,int n):由中序序列in和後序序列post構造二叉樹。 node #include <stdio.h> #include <malloc.h> #define MaxSize 100 typedef char ElemT
相關文章
相關標籤/搜索