Heap / Priority Queue
The largest or smallest item is always at the top, and it is removed in logarithmic time.
The largest or smallest item is always at the top, and it is removed in logarithmic time.
Last updated on September 24, 2026
Was this page helpful?
Thanks for your feedback!