Problem 3891 · Medium

Minimum Increase to Maximize Special Indices

Make as many interior positions strict peaks as possible by raising values, then use the fewest raises.

Open the interactive visualisation