北郵oj二叉樹的層數

我的方法比較的原始 #include<bits/stdc++.h> using namespace std; #define maxn 105 struct node{ int depth;//深度 bool flag;//是否在樹中 void init(){//初始化 depth = 1; flag = false; } }; node tree[maxn]; int ma
相關文章
相關標籤/搜索