Problem 3904 · Medium

Smallest Stable Index II

Use linear-time suffix and prefix extrema to test stability across up to 100,000 elements.

Open the interactive visualisation