Skip to main content
๐Ÿ“œ WAYPOINT LESSON

Checkpoint: collapse the runs

โญโญ intermediateโณ 20 min read๐Ÿ“ Lesson 100 of 256

Run compression fusing boundary detection with the string accumulator.

compress is runs-as-a-string: same boundary test, same seed-from-first element, but the accumulator builds text instead of a number. Students who can produce this on demand own the adjacency-plus-accumulator pattern that half of all String FRQs reduce to. Next module: the same machines aimed at arrays.