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 矩陣賦零。
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 矩陣賦零。