Skip to main content
๐Ÿ“œ WAYPOINT LESSON

Checkpoint โ€” Boundary Reading

โญ beginnerโณ 40 min read๐Ÿ“ Lesson 188 of 281

Difference-array outputs graded on asymmetric ops where reversed-interval reading fails; reading the input format precisely is the skill.

Checkpoint โ€” Boundary. Line 1: n q. Then q lines: l r v. After all ops, print every final value, one per line.

Read the op format exactly: add v on [l, r] inclusive.