max heap in c++ using priority queue 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;