03-樹3 Tree Traversals Again (25 分)

  大致思路:根據已知條件構建樹,構建完成後,採用後序遞歸遍歷樹 #include<cstdio> #include<stack> #include<string> #include<iostream> const int maxn=35; using namespace std; struct TNode{ int left, right; }T[maxn]; int count=0, n;
相關文章
相關標籤/搜索