数据结构-二叉树(4)利用前序序列和中序序列惟一肯定二叉树

肯定方法:html template <class T> BinTreeNode<T> *createBinaryTree(T *VLR,T *LVR,int n){ if(n==0) return NULL; int k=0; while (VLR[0]!=LVR[k]) k++; BinTreeNode<T> *t=new BinTreeNode<T>(VLR[
相关文章
相关标签/搜索