Heaps / Priority Queues
A tree-shaped structure that keeps the min (or max) element accessible in O(1), with O(log n) insert and remove.
Overview
The Heaps / Priority Queues guide: how it works, the trade-offs interviewers ask about, and the mistakes to avoid.
3 min read
Heaps / Priority Queues Interview Q&A
Interview questions to answer out loud first, then compare with a model answer.
25 Q&A
Heaps / Priority Queues MCQs
Multiple-choice checks with five options and an explanation for every answer.
25 MCQs