• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
2014>
博客园    首页    新随笔    联系   管理    订阅  订阅
08 2019 档案
中+后构建二叉树

摘要:#include #include #include using namespace std; #define N 10000000 struct BTNode{ char data; BTNode *lchild; BTNode *rchild; }BTNode; char IN[N],POST[N]; struct BTNode *nil=NULL; struct B... 阅读全文
posted @ 2019-08-12 16:47 2014> 阅读(178) 评论(0) 推荐(0)
中科院2000 三

摘要:由二叉树的前序遍历和中序遍历序列能确定唯一的一棵二叉树,下面程序的作用是实现由已知某二叉树的前序遍历和中序遍历序列,生成一棵用二叉链表表示的二叉树并打印出后序遍历序列,请写出程序所 缺的语句。 #define MAX 100 typedef struct Node{ char info; struct Node *llink, *rlink; }TNODE; char pred[MAX],inod 阅读全文
posted @ 2019-08-11 17:30 2014> 阅读(193) 评论(0) 推荐(0)

博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3