Finding the maximum and the minimum element from the modified array after the operations
mn = sys . maxsize NEW_LINE mx = - sys . maxsize - 1 NEW_LINE for i in range ( MAX + 1 ) : NEW_LINE INDENT if ( arr1 [ i ] > 0 ) : NEW_LINE INDENT if ( mn > i ) : NEW_LINE INDENT mn = i NEW_LINE DEDENT if ( mx < i ) : NEW_LINE INDENT mx = i NEW_LINE DEDENT DEDENT DEDENT