Problem 1846 · Medium

Maximum Element After Decreasing and Rearranging

Maximize the final value after decreases and rearrangement under adjacent-gap constraints.

Open the interactive visualisation