- 博客(7)
- 问答 (1)
- 收藏
- 关注
原创 哈希表 除数余留 + 链地址 && 线性探测 && 平方探测
/*****************************author: yomidate: 17.1.17mood: ps: *******************************//***#includeusing namespace std;const int maxn = 13;struct hash_node{ int data; hash
2017-01-17 21:02:24 274
原创 堆的创建 插入和删除
바빠 바빠 바빠~///heap#includeusing namespace std;void heap_insert(int *heap, int i, int num){ int j = (i-1)>>1; heap[i] = num; while(j>=0 && i!=0){ if(heap[j] < num) br
2017-01-14 15:04:29 234
原创 AVLtree
/*******************************author: yomidate: 17.1.13mood:짱짱짱ps:기뿐이 너무 촣다~*******************************////这个是按照深度 判断平衡程度 也可以直接定义一个平衡程度变量#include#include #include using namespace std;
2017-01-14 10:43:35 210
转载 AVL tree 调整方法
平衡二叉树对于二叉查找树,尽管查找、插入及删除操作的平均运行时间为O(logn),但是它们的最差运行时间都是O(n),原因在于对树的形状没有限制。平衡二叉树又称为AVL树,它或者是一棵空树,或者是有下列性质的二叉树:它的左子树和右子树都是平衡二叉树,且左右子树的深度之差的绝对值不超过1。二叉树的的平衡因子BF为:该结点的左子树的深度减去它的右子树的深度,则平衡二叉树的所
2017-01-12 14:22:49 552
原创 abnormality handling
/*******************************author: yomidate: 17.1.9mood:ps:*******************************////谁能告诉我它为啥没捕捉到异常呀?【转圈哭】/*#includeusing namespace std;void play(){ try { i
2017-01-09 19:31:00 247
原创 class template
/*******************************author: yomidate: 17.1.9mood: bangbangbangps: lalala*******************************////果然啊 自己写的确实是不如人家写的好 慢慢学吧 开启抄代码模式#include using namespace std;class CNode
2017-01-09 18:21:10 200
原创 the principle and usage of va_list
/*****************************************************author: yomidate: 17.1.8mood: greatps: Today is the first day of my holiday ! Hahahaha!!!****************************************************
2017-01-08 14:16:20 201
空空如也
C++ 小白有一条语句不明白 求各位大佬帮个忙
2017-05-24
TA创建的收藏夹 TA关注的收藏夹
TA关注的人