Phase 20Days 114-117

Advanced Strings

Linear-time string matching and structure: KMP, Z, hashing, Manacher

Phase Goal

Cross from O(nm) brute matching into O(n) algorithms and the problems built on them.

Progress

Day 114: String hashing

Day 115: KMP

Day 116: Z-function & Manacher

Day 117: Advanced string structures (intro) & recap

Phase Complete!

After this phase, you'll be able to:

  • String hashing
  • KMP
  • Z-function & Manacher
  • Advanced string structures (intro) & recap

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