AlgoMaster Logo

Set Matrix Zeroes

matrix=[[1,1,1],[1,0,1],[1,1,1]]
0 / 13
algomaster.io
Step:Start: Copy the matrix, then zero the row and column of each zero found in the copy