how to create min heap and max heap in cpp 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;