Skip to main content

Stacks & Queues

Stacks and queues are fundamental data structures that provide specific ordering and access patterns essential for many algorithms.

Learning Map​

Stack and queue concepts organized by complexity and application.

Prerequisites​

What's in scope​

  • Stack Applications: Expression evaluation, parentheses matching, monotonic stack, and histogram problems
  • Queue Applications: BFS implementation, sliding window maximum, task scheduling, and level-order traversal
  • Deque & Priority Queue: Double-ended operations, heap implementation, top K problems, and task prioritization

How to use this section​