Skip to main content
๐Ÿ“œ WAYPOINT LESSON

Checkpoint: one pass, adjacency

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

Letter-followed-by-digit counting from a precise contract.

The checkpoint method compares each character with its successor โ€” the same adjacency shape you will reuse for runs, duplicates, and neighbor logic in arrays. Note the off-by-one discipline: the loop runs to length - 2 precisely because it reads i + 1. Next module: the same one-pass discipline on the String API itself.