ProblemYou are given an array A of length N.The interesting value of a subarray is defined as the product of the maximum and minimum elements of the subarray.Find the minimum and maximum interesting value over all subarrays for the given array.Note: A subarray is obtained by deletion of several (possibly zero) elements from the beginning of the array and several (possibly zero) elements from the end...
Read More