摘要: #include #include typedef struct TNode { int value; TNode* lchild; TNode* rchild; }TNode,*BTree; //根据先序遍历、中序遍历构建二叉树 BTree rebuild(int preOrder[],int startPre,int endPre,int inOrder[],int startIn,int endIn) { //先序遍历和中序遍历长度应相... 阅读全文
posted @ 2013-11-21 15:59 alexeyqian 阅读(216) 评论(0) 推荐(0) 编辑