Problem 2903 · Easy

Find Indices With Index and Value Difference I

Brute force over all index pairs: return the first pair whose index gap and value gap both meet the thresholds.

Open the interactive visualisation