二叉树
文章平均质量分 79
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 · 241 阅读 · 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 · 178 阅读 · 0 评论
分享