• + 1 comment

    is arrays.sort() needed? you can find min and max while reading inputs.