Chinaunix首页 | 论坛 | 博客
  • 博客访问: 259265
  • 博文数量: 84
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 927
  • 用 户 组: 普通用户
  • 注册时间: 2015-03-06 23:00
个人简介

growing

文章分类

全部博文(84)

文章存档

2017年(6)

2016年(61)

2015年(17)

我的朋友

发布时间:2016-04-27 12:36:11

也是像AVL一样分四种情况,不同的是RL,LR时不用想AVL一样调整平衡因子,只需要调色就行了。插外侧是单旋转,内侧是双旋转。插入外侧是只需要调色是不需要旋转的。如下:#pragma onceenum Color{RED,BLACK};templatestruct RBtreeNode.........【阅读全文】

阅读(1346) | 评论(0) | 转发(0)

发布时间:2016-04-25 13:17:32

1.以下四种方式时需要旋转templatestruct AVLTreeNode{????AVLTreeNode(const K& key,const V& value)????????:_left(NULL)???????&n.........【阅读全文】

阅读(1368) | 评论(0) | 转发(0)

发布时间:2016-04-24 19:33:17

今天查问题的时候又发现两个很有用的社区。第一个~很多的语言社区,真的很cooooooooooooooooooooool~~~~~~~~~还有很多很有趣的文章不仅是学术。地址:http://kukuruku.co/hub/cpp/第二个:也是全英,见识传说中的geek!~~地址:http://www.geeksforgeeks.org/.........【阅读全文】

阅读(1165) | 评论(0) | 转发(0)

发布时间:2016-04-20 14:20:57

1.暴力旋转while(循环次数--){    void move_left(char arr[], int count) {    int i = 0;    int len = strlen(arr);    for (i = 0; i < count; i++)   &.........【阅读全文】

阅读(1395) | 评论(0) | 转发(0)

发布时间:2016-04-20 09:55:59

例如:This is a sample ->SAMPLE A IS tHIS#include#include#include using namespace std;class Transform {public:    string trans(string& s, int n)    .........【阅读全文】

阅读(1426) | 评论(3) | 转发(0)
给主人留下些什么吧!~~

enenshiwo2016-04-12 10:56

回复  |  举报
留言热议
请登录后留言。

登录 注册