SyntaxFix
Write A Post
Hire A Developer
Questions
Use std::greater as the comparison function:
std::greater
std::priority_queue<int, std::vector<int>, std::greater<int> > my_min_heap;