面試題7——二叉樹重建

題目:輸入某一個二叉樹的前序和中序遍歷,重建該二叉樹,返回二叉樹的根節點 #include<stdio.h> #include<assert.h> #include<malloc.h> typedef int DataType; typedef struct BinTreeNode{ struct BinTreeNode *pLeft; struct BinTreeNode *pRigh
相關文章
相關標籤/搜索