Skip to main content

Heaps & Priority Queues

Heaps are specialized tree-based data structures that provide efficient access to minimum or maximum elements, making them essential for priority-based operations.

Learning Map

Heap concepts organized from fundamentals to applications.

Prerequisites

What's in scope

  • Heap Fundamentals: Min-heap, max-heap, operations, implementation, and properties
  • Heap Applications: Top K elements, median finding, merging sorted lists, task scheduling, and shortest path

How to use this section