๐ WAYPOINT LESSON
Checkpoint: the window boundary
โญโญโญ advancedโณ 25 min read๐ Lesson 220 of 256
A boundary bug in the wild: the loop condition must include the final window.
The starter compiles, passes the example in its author's head, and
fails whenever the best window touches the last element โ the
classic i + k < length versus i + k <= length. Diagnose with
the failing case k == length first; it isolates the boundary
immediately.