• + 5 comments

    Why not just use max = -63? If the whole array is -9 then max will never change and output correct answer of -63