Problem 754 · Medium

Reach a Number

Add 1, 2, 3, ... until the sum reaches the target with matching parity.

Open the interactive visualisation