1.7 Write an algorithm such that if an element in an MxN matrix is 0, its entire row and column are set to 0.
LeetCode中的原题,请参见我之前的博客Set Matrix Zeroes 矩阵赋零。
本文转自博客园Grandyang的博客,原文链接:矩阵赋零[CareerCup] 1.7 Set Matrix Zeroes ,如需转载请自行联系原博主。
1.7 Write an algorithm such that if an element in an MxN matrix is 0, its entire row and column are set to 0.
LeetCode中的原题,请参见我之前的博客Set Matrix Zeroes 矩阵赋零。
本文转自博客园Grandyang的博客,原文链接:矩阵赋零[CareerCup] 1.7 Set Matrix Zeroes ,如需转载请自行联系原博主。