摘要: 1、二叉堆的操作 (1)取出元素 (2)插入元素 (3)删除元素 //手写大根堆维护 #include<bits/stdc++.h> using namespace std; int heap[1000]; int up(int x) { if(heap[x]<=heap[x/2]) return 阅读全文
posted @ 2017-04-30 21:08 ANhour 阅读(184) 评论(0) 推荐(0)