๐ 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.