最大堆(MaxHeap)的基本操作(建立,插入和删除)
#include<iostream>
#include<vector>
#include<algorithm>
#include<map>
#include<fstream>
#include<cctype>
using namespace std;
const int INF = 0x3f3f3f;
typedef struct Max_Heap {
int* element;
int capacity;
int size;
}
原创
2020-05-26 19:21:18 ·
1187 阅读 ·
2 评论