Try to solve the Set Matrix Zeroes problem.
Statement
Given a matrix, mat
, if any element within the matrix is zero, set that row and column to zero.
Constraints:
-
mat.row
,mat.col
-
mat[i][j]
Try to solve the Set Matrix Zeroes problem.
Given a matrix, mat
, if any element within the matrix is zero, set that row and column to zero.
Constraints:
mat.row
, mat.col
mat[i][j]