![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
二叉树
文章平均质量分 77
lw_ding
这个作者很懒,什么都没留下…
展开
-
红黑树RBTree
#pragma once //简单方法实现红黑树的插入以及删除(并调整红黑树平衡) template class RBTree; typedef enum{RED=0,BLACK}COLOR; template class RBNode { friend class RBTree; public: RBNode():data(Type()),leftChild(NULL),rightChi原创 2018-02-06 09:15:12 · 175 阅读 · 0 评论 -
AVL平衡二叉搜索树
//简单方法实现AVL的插入#pragma once#include template class AVLTree; template class AVLNode { friend class AVLTree; public: AVLNode():data(Type()),df(0),leftChild(NULL),rightChild(NULL) {} AVLNode(Type t,A原创 2018-02-06 09:42:47 · 127 阅读 · 0 评论