Challenge: Array Index Maximum Difference
Let’s solve the array index maximum difference problem.
Problem
Given an array arr[]
of integers, find the two largest differences between indices i
and j
in the array such that:
i
is less thanj
Let’s solve the array index maximum difference problem.
Given an array arr[]
of integers, find the two largest differences between indices i
and j
in the array such that:
i
is less than j