I solved this problem in C++ just like most other people solved it here, except I started iterating over the rows and performing a one-dimensional binary search on sum of columns. I got a TLE. When I switched between the rows and columns the solution was accepted. This should not be the case. Either the algorithm enforces this on both the rows and columns or it doesnt enforce it at all.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.