[[2,2,-1]] 0 expect -1 in system?

  • 0

    the condition of the problem states
    " The rectangle inside the matrix must have an area > 0."
    so given input [[2,2,-1]] 0, why is the expected result -1? rectangle with negative area should not even been considered.

  • 2

    Here area is just that of the square. It has nothing to do with the numbers in the square.

Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.