• + 0 comments

    You can initialize max value less than -63. int max = -9*7; Because there is a constraint: -9 <= arr[i][j] <= 9 So there is no point to use value less than -9*7