![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法与数据结构
lihuishine
为了活着而活着
展开
-
Blue is white,dark is not blue(AVL树)
#include <iostream> #include <deque> class AVLTree { private: struct Node { int data; //元素 Node * left = nullptr; //左孩子 Node * right = nullptr; //右孩子 ...原创 2020-01-13 10:49:25 · 78 阅读 · 0 评论 -
Blue is white,dark is not blue(二叉搜索树)
在#include <iostream> #include <deque> class BinarySearchTree { private: struct Node { int data = 0; Node *left = nullptr; Node *right = nullptr; Nod...原创 2020-01-01 12:50:51 · 104 阅读 · 0 评论 -
Blue is white,dark is not blue(常用排序算法)
#include <iostream> // blue is white,dark is not blue using namespace std; void swap(int *,int *); void print(int *,int); void bubbleSort(int *,int); // 稳定 void selectSort(int *,int);// 不稳定 voi...原创 2019-12-28 21:01:15 · 197 阅读 · 1 评论