I just found that this question is untestable for a large range of value of vars it defined in 'Note'. When I try 45 and 25, the expected answer came out as -223978248 while m, n can be any value within 100 as it says in 'Note'. I think it's out of range of Integer. @administrators
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.