摘要:
//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 阅读全文
摘要:
#include<bits/stdc++.h> #include <cstdio> #include <cstring> #include <cstdlib> #include <algorithm> #include <vector> #include<cmath> using namespace 阅读全文