Skip to content

Glossary: Coding Interviews in C++

std::priority_queue

Also written: priority_queue

The C++ heap. By default it is a max-heap with the biggest item on top, and with `std::greater<>` it is a min-heap.

Where the book teaches it

Related terms

Heapstd::greater