LeetCode – Set Matrix Zeroes (Java)
Given a m * n matrix, if an element is 0, set its entire row and column to 0. Do it in place. Analysis This problem should be solved in place, i.e., no other array should be used. We can use the first column and the first row to track if a row/column should be … Read more