Phase 8Days 40-44

Two Pointers & Sliding Window

The window / two-pointer engine that solves a huge class of subarray and substring problems in O(n)

Phase Goal

Master the grow-shrink window and know exactly when it applies versus prefix sums.

Progress

Day 40: Two pointers — the technique

Day 41: Fixed-size sliding window

Day 42: Variable-size sliding window

Day 43: Hard window problems

Day 44: Hashing deep dive & problem set

Phase Complete!

After this phase, you'll be able to:

  • Two pointers — the technique
  • Fixed-size sliding window
  • Variable-size sliding window
  • Hard window problems
  • Hashing deep dive & problem set

After Phase 8, 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.