摘要: 堆——学习笔记 完全二叉树形式 具有单调性 可以用来求最值 也可以用来求最值 分类 大根堆:根节点最大 小根堆:根节点最小 STL_heap 借助vector来建堆 初始化 #include<bits/stdc++.h>using namespace std;int main(){ int n; v 阅读全文
posted @ 2021-01-27 16:41 wsy_jim 阅读(75) 评论(0) 推荐(0) 编辑