Problem 3876 · Medium

Construct Uniform Parity Array II

Like the first parity construction, but a value may only subtract a strictly smaller value.

Open the interactive visualisation