文件名称:第8次上机
介绍说明--下载内容来自于网络,使用问题请自行百度
编写一个程序,实现二叉树的下列运算:
1) 输入一个二叉树的先序序列,生成二叉树的二叉链表;
2) 显示其先序、中序和后序遍历结果
3) 计算二叉树的叶子结点数。
4) 求二叉树的深度(Write a program to implement the following operations of a two fork tree: 1) input a preorder sequence of a two fork tree to generate a two chain list of two forked trees. 2) showed that the first order, the order and post order traversal results 3) calculate the number of leaf nodal points of the two forked tree. 4) the depth of the two forked tree)
1) 输入一个二叉树的先序序列,生成二叉树的二叉链表;
2) 显示其先序、中序和后序遍历结果
3) 计算二叉树的叶子结点数。
4) 求二叉树的深度(Write a program to implement the following operations of a two fork tree: 1) input a preorder sequence of a two fork tree to generate a two chain list of two forked trees. 2) showed that the first order, the order and post order traversal results 3) calculate the number of leaf nodal points of the two forked tree. 4) the depth of the two forked tree)
相关搜索: C++
(系统自动生成,下载前可以参看下载内容)
下载文件列表
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
