2012年5月8日

摘要: 解决思想:根据前序遍历的结果得到树根(包括子树)将中序遍历的结果划分成左右子树,来进行递归#include <stdio.h>#include <stdlib.h>#include <string.h>typedef struct Node{ char chValue; struct Node *lChild; struct Node *rChild;}Node;//重建二叉树void Rebuild(char*pPreOrder , char*pInOrder , Node **pRoot , int nTreeLen){ int nLeftLen... 阅读全文
posted @ 2012-05-08 10:03 温柔的暴力 阅读(581) 评论(0) 推荐(0) 编辑

导航