摘要: 美图素材(贴贴) 阅读全文
posted @ 2022-01-28 22:49 帝宝单推人! 阅读(119) 评论(0) 推荐(0)
摘要: 二叉树的层序遍历,用堆栈先序遍历,递归树的深度 ##队列实现层序遍历,以及改为堆栈先序遍历 #include<iostream> using namespace std; typedef int ElemType; typedef struct BinTree { ElemType data; struct BinTree* Left; stru 阅读全文
posted @ 2022-01-28 22:40 帝宝单推人! 阅读(79) 评论(0) 推荐(0)
摘要: 二叉树的三种递归与非递归遍历 ##递归遍历 #include<iostream> using namespace std; typedef struct BinTree { ElemType data; struct BinTree* Left; struct BinTree* Right; }BinTree; void Pos 阅读全文
posted @ 2022-01-28 19:29 帝宝单推人! 阅读(43) 评论(0) 推荐(0)