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.
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.