Update the maximum and minimum accordingly
minimum = min ( minimum , arr [ i ] ) NEW_LINE maximum = max ( maximum , arr [ i ] ) NEW_LINE print ( minimum , end = " , ▁ " ) NEW_LINE print ( maximum ) NEW_LINE