文件名称:BinaryTree
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.27kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
程序输入是一个(扩展)二叉树的先序序列。例如:扩展二叉树先序序列为ab#d##ce###。其中#代表空指针。
编写程序实现二叉树的如下操作:
1) 建立二叉链表
2)二叉树的先序、中序、后序遍历
3)求解二叉树的叶子结点个数
4)将二叉树中所有结点的左、右子树相互交换 -Program input is a (extended) binary tree inorder sequence. For example: the first order extended binary tree sequence is ab# d## ce###. Where# null pointer. Programming to achieve binary tree as follows: 1) the establishment of binary list 2) the first order binary tree, in order, the order of traversal 3) solve the binary tree leaf node number 4) binary tree All nodes of the left and right subtree exchange
编写程序实现二叉树的如下操作:
1) 建立二叉链表
2)二叉树的先序、中序、后序遍历
3)求解二叉树的叶子结点个数
4)将二叉树中所有结点的左、右子树相互交换 -Program input is a (extended) binary tree inorder sequence. For example: the first order extended binary tree sequence is ab# d## ce###. Where# null pointer. Programming to achieve binary tree as follows: 1) the establishment of binary list 2) the first order binary tree, in order, the order of traversal 3) solve the binary tree leaf node number 4) binary tree All nodes of the left and right subtree exchange
(系统自动生成,下载前可以参看下载内容)
下载文件列表
BinaryTree.cpp
新建 文本文档.txt
新建 文本文档.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.