• + 1 comment

    what about the custom input:

    5 1

    1 5 -100

    wouldn't the output be 0? But the max would be -100 since all elements would be -100.