2016年6月28日

AVL树相关操作

摘要: #include using namespace std; //AVL树的节点 template class TreeNode { public: TreeNode() :lson(NULL), rson(NULL), freq(1), hgt(0){} T data;//值 int hgt;//以这个结点为根的树的高度 int freq;//相同点的频率,... 阅读全文

posted @ 2016-06-28 20:09 Kooing 阅读(160) 评论(0) 推荐(0) 编辑

导航