incresing priority queue in c++ code example
Example 1: min heap priority queue c++
#include<queue>
std::priority_queue <int, std::vector<int>, std::greater<int> > minHeap;
Example 2: how to store pair in min heap in c++
typedef pair<int, int> pi;
priority_queue<pi, vector<pi>, greater<pi> > pq;