MatrixSetZero
1.0.0
Description:
Implement a function, passing in parameters as a matrix (int type two-dimensional array), and returning the rows and columns with 0 are set to 0. The space complexity is required to beO(1).
input:
1 0 2 3 1
2 3 0 1 1
2 1 1 2 4
3 0 1 1 1
output:
0 0 0 0 0
0 0 0 0 0
2 0 0 2 4
0 0 0 0 0