【C++】使用AVL平衡樹實現一個相似STL的Map

我才學完AVL,感受AVL好像能實現相似map這樣的功能,因而作了這樣一個模板類。(後來知道stl的map也是用平衡樹實現的,可是是用內建的紅黑樹,更高級一點)node #include <iostream> #include <cstdio> #include <string> using namespace std; /* Map使用起來就像一個強大的數組,可是你不須要事先聲明它的範圍,它的
相關文章
相關標籤/搜索