文件名称:BiTree
介绍说明--下载内容均来自于网络,请自行研究使用
输入一个字符串,并建成一棵二叉树,满足左子树的字符都要小于根结点的字符,右字树的字符都要大于根结点的字符,每个结点值有字符和字符的出现次数,并用三种遍历方法打印,比较是否与自己想象的相一致。再求树的深度、叶子结点数、最大结点值。
(补充:对二叉树实现所有左右子树的交换并中序输出结果)
-Enter a string, and the completion of a binary tree, to meet the characters in the left subtree must be less than the root node of the characters, the characters must be the right word is greater than the tree root node of the characters, the value of each node are emergence of the number of characters and character and use three kinds of traversal methods to print, comparisons are consistent with their own imagination. Again and ask for the depth of leaf nodes, the largest node values. (Added: about the achievement of all of the binary sub-tree in order to exchange and output of results)
(补充:对二叉树实现所有左右子树的交换并中序输出结果)
-Enter a string, and the completion of a binary tree, to meet the characters in the left subtree must be less than the root node of the characters, the characters must be the right word is greater than the tree root node of the characters, the value of each node are emergence of the number of characters and character and use three kinds of traversal methods to print, comparisons are consistent with their own imagination. Again and ask for the depth of leaf nodes, the largest node values. (Added: about the achievement of all of the binary sub-tree in order to exchange and output of results)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
BiTree.c