Find maximum and minimum values from the ranges [ 0 , L - 1 ] and [ R + 1 , N - 1 ]
else : NEW_LINE INDENT maximum = max ( prefix [ L - 1 ] [ 0 ] , suffix [ R + 1 ] [ 0 ] ) NEW_LINE minimum = min ( prefix [ L - 1 ] [ 1 ] , suffix [ R + 1 ] [ 1 ] ) NEW_LINE DEDENT