Given an array of size N. Find the size of the smallest subarray such that it contains atleast one occurrence of the maximum value of the array and atleast one occurrence of the minimum value of the ...
The input range includes both negative and non-negative values and the problem defines a trionic array, as an array with three slopes. At the start: strictly increasing. At the middle: strictly ...