搜索资源列表
aglo7-1
- 二叉树的基本算法。(1) 输出二叉树B; (2) 输出二叉树B的深度; (3) 输出H结点的左、右孩子结点值; (4) 输出二叉树B的宽度; (5) 输出二叉树B的结点个数; 输出二叉树B的叶子结点个数 -The basic algorithm for binary tree。(1) output binary tree B (2) The output of a binary tree B of depth (3) The output of H nodes
1
- 此代码可以创建二叉树并求出叶子节点总数和节点总数-This code can create a binary tree and calculated the total number of leaf nodes and the total number of nodes