优先队列

#include<stdio.h> #define N 1000 #define INF 999999999 struct node { int size;//堆大小 int length;//数组长度 int num[N]; }; void MAX_HEAPIFY(struct node &H, int i) { //最大堆维护 int l = i * 2;//算出左孩子的下标 i
相关文章
相关标签/搜索