Phase 12Days 62-67

Stacks & Queues

Implement them, master expression evaluation, and the monotonic-stack pattern

Phase Goal

Discover the stack from a bracket problem, then wield monotonic stacks on the next-greater family.

Progress

Day 62: Stacks & queues from scratch

Day 63: Discovering the stack (attempt-first) & validity

Day 64: Expression notation

Day 65: Monotonic stack — part 1

Day 66: Monotonic stack — part 2

Day 67: Design with stacks/queues & recap

Phase Complete!

After this phase, you'll be able to:

  • Stacks & queues from scratch
  • Discovering the stack (attempt-first) & validity
  • Expression notation
  • Monotonic stack — part 1
  • Monotonic stack — part 2
  • Design with stacks/queues & recap

After Phase 12, explain a core invariant, reconstruct a solution after a delay, diagnose a bug, and solve one unlabelled variation. Repair a failed prerequisite before advancing; record help separately from independent work.