上一页 1 2 3 4 5 6 7 8 ··· 29 下一页
摘要: 堆的详细创建过程:参考:https://www.jianshu.com/p/21bef3fc3030 明白堆的详细创建过程的前提是要理解Shift Down。 但是这明显不符合最大堆的定义,所以我们需要让该完全二叉树转换成最大堆!怎么转换成一个最大堆呢? 最大堆有一个特点就是其各个子树都是一个最大堆 阅读全文
posted @ 2020-02-02 18:49 JasonPeng1 阅读(245) 评论(0) 推荐(0)
摘要: 插入元素: 取出元素: 白板编程:实现堆 创建堆: 阅读全文
posted @ 2020-02-02 17:44 JasonPeng1 阅读(472) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> #include <stdio.h> #include <stdlib.h> #include <queue> using namespace std; const int N = 1010; int father[N]; int isRoot[N] 阅读全文
posted @ 2020-01-31 23:09 JasonPeng1 阅读(117) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> #include <stdio.h> #include <stdlib.h> #include <queue> using namespace std; const int maxn = 110; struct node{ int v,height; 阅读全文
posted @ 2020-01-30 20:51 JasonPeng1 阅读(159) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> #include <stdio.h> #include <stdlib.h> #include <queue> using namespace std; const int maxn = 110; struct Node{ int data; int 阅读全文
posted @ 2020-01-29 14:14 JasonPeng1 阅读(134) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> #include <stdio.h> #include <stdlib.h> #include <queue> using namespace std; const int maxn = 1010; int temp[maxn],initial[ma 阅读全文
posted @ 2020-01-29 13:08 JasonPeng1 阅读(178) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> #include <stdio.h> #include <stdlib.h> #include <queue> using namespace std; struct node{ int data; node *left; node *right; 阅读全文
posted @ 2020-01-29 12:27 JasonPeng1 阅读(140) 评论(0) 推荐(0)
摘要: 项目效果预览: 安装成功的效果图: kibana安装: ES使用的是倒排索引 参考:https://www.yuque.com/gaohanghang/vx5cb2/aa576g#HuZ1N 《Springboot + ElasticSearch 构建博客检索系统》 视频地址:https://www 阅读全文
posted @ 2020-01-28 17:42 JasonPeng1 阅读(1166) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> #include <stdio.h> #include <stdlib.h> #include <queue> using namespace std; const int MAXN = 110; struct Node{ int weight; v 阅读全文
posted @ 2020-01-27 23:12 JasonPeng1 阅读(114) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> #include <stdio.h> #include <stdlib.h> #include <queue> using namespace std; const int maxn = 100010; struct node{ //bool lea 阅读全文
posted @ 2020-01-27 22:40 JasonPeng1 阅读(214) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 29 下一页