Problem 3355 · Medium

Zero Array Transformation I

Each query may lower any positions in its range by one; the array can be zeroed exactly when every position is covered enough times.

Open the interactive visualisation