- 博客(1)
- 收藏
- 关注
原创 二叉树学习笔记
记录一下二叉树的学习(大部分抄书,加上一点点自己调试)实现了二叉树的创建,遍历输出节点和叶子节点,求叶子节点个数和二叉树的高度#include <stdio.h>#include <stdlib.h>int leafcount=0;//定义全局变量leafcount typedef struct Node//定义二叉树结构体 { char data; struct Node *LChild; struct Node *RChild;}BiNode,*BiTree
2021-11-12 11:39:25
279
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅