PHASE 05

📚 Stacks & Queues

Undo buttons, browser history, printer queues and bracket matching. Learn stacks, queues and deques, and the monotonic stack that answers “next greater element” in one pass.

⏱️ ~2 hours of lessons 📚 3 lessons ✏️ 4 exercises Medium
▶ Start this phase

🎯 In this phase you will…

  • Implement and use a stack
  • Implement and use a queue and deque
  • Apply the monotonic stack pattern

📺 Lessons in this playlist

📝 Phase test

Concept questions, pseudocode writing, tracing and debugging — check you’re ready for the next phase.

💡 Concept check
Breadth-first search explores level by level. Which structure drives it?