Problem 2016 · Easy

Maximum Difference Between Increasing Elements

Find the largest positive difference where the smaller value occurs at an earlier index. The visual tracks the running minimum and compares each later value against it.

Open the interactive visualisation