Which of the following should be used as a min-heap? queue priority queue stack 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;