文件名称:tree
-
所属分类:
- 标签属性:
- 上传时间:2014-11-23
-
文件大小:1.19kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
编写一个算法程序实现:
1、建立一棵6个结点的二叉树,结点的数据值是正整数,并按中序输出之;
2、完成对以上二叉树中所有结点的左、右子树相互交换,并按中序输出交换以后的结果。
3、统计二叉树叶子结点的个数,并输出结果。
-Write an algorithm Program: 1. Establish a tree node 6 binary data value node is a positive integer, the output of the press in order 2, complete binary tree above all nodes in the left and right subtree mutual exchange, according to the exchange after the results of the output sequence. 3, the number of binary tree leaf node statistics, and outputs the result.
1、建立一棵6个结点的二叉树,结点的数据值是正整数,并按中序输出之;
2、完成对以上二叉树中所有结点的左、右子树相互交换,并按中序输出交换以后的结果。
3、统计二叉树叶子结点的个数,并输出结果。
-Write an algorithm Program: 1. Establish a tree node 6 binary data value node is a positive integer, the output of the press in order 2, complete binary tree above all nodes in the left and right subtree mutual exchange, according to the exchange after the results of the output sequence. 3, the number of binary tree leaf node statistics, and outputs the result.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
tree.c
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.