Problem 3796 · Medium

Find Maximum Value in a Constrained Sequence

Propagate each position cap forward and backward through the step limits, then take the largest cap.

Open the interactive visualisation