最優二叉樹、赫爾曼樹(學習記錄)

注意vector保存的內存地址可能會變,因此若是用vector來存儲全部節點的話,須要先resize好容器,保證期間不進行節點的增減。multiset是容許關鍵字重複的容器node #include<vector> #include<iostream> #include<string> #include<set> using namespace std; struct node { str
相關文章
相關標籤/搜索