摘要: //1.计算度为2 度为1 度为0的结点个数 void Count(BiTree bt) { if(bt) { if(bt->lchild && bt->rchild) n2++; else if(bt->lchild && !bt->rchild || bt->rchild && !bt->lch 阅读全文
posted @ 2020-09-19 21:30 Akmf's_blog 阅读(128) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> #include <cstdio> #include <cstring> #include <cstdlib> #include <algorithm> #include <vector> #include<cmath> using namespace 阅读全文
posted @ 2020-09-19 20:22 Akmf's_blog 阅读(103) 评论(0) 推荐(0) 编辑