数据结构
wwwwangjing
这个作者很懒,什么都没留下…
展开
-
二叉树的创建及一些基本操作
.hpp#define _CRT_SECURE_NO_WARNINGS 1 #pragma once#include<iostream> using namespace std; #include<assert.h> #include<stack> #include<queue>template<class T> struct BinaryTreeNode { BinaryTreeNode(原创 2017-08-23 17:21:54 · 555 阅读 · 0 评论 -
红黑树的基本操作
template<class K, class V> class RBTree { typedef RBTreeNode<K, V> Node;public: RBTree() :_pRoot(NULL) {} //插入 bool Insert(const K& key, const V& value) { return _原创 2017-09-01 22:33:55 · 534 阅读 · 0 评论