Maximum Difference in an Array

Return the maximum difference between any a[i] and a[j] where a[i] < a[j] and i < j The maximum difference for a pair of elements in some array a is defined as the largest difference between any a[i] and a[j] where i < j and a[i] < a[j]. The declaration for a function named maxDifference […]

Continue Reading