max heap mplementation using priority queue c++ code example
Example: min heap priority queue c++
#include<queue>
std::priority_queue <int, std::vector<int>, std::greater<int> > minHeap;
#include<queue>
std::priority_queue <int, std::vector<int>, std::greater<int> > minHeap;