Problem 3903 · Easy

Smallest Stable Index I

Track inclusive suffix minima and prefix maxima to find the first index within the instability threshold.

Open the interactive visualisation