priority_queue pq;//this works like rank (e.g: rank=1 > rank=2)
//the lower the rank the higher is the priority
pq.push(3);
cout<, greater> pqr;
//this is the reverse priority queue
//this works like score the higher the score the more is it's priority
pqr.push(1);
pqr.push(4);
cout<
priority queue in c++
//Shubh'grepper
// Implementation of priority_queue in c++
//queue with elements in decreasing order
priority_queue pq;
// queue with elements in increasing order using compare function inside declaration
priority_queue , greater > pq;
//priority_queue of type pair
#define pp pair
priority_queue , greater > pq;