Skip to content
Leetcode
Esc
↑↓navigate↵open⌘Jpreview

Heap / Priority Queue

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?