LeetCode p73 Set Matrix Zeroes 题解
1.题目:
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place.
题意:
给一个矩阵,把有0的行列全部设置为0.
2.解题思路:
见代码
3.代码
1 |
|
很高兴遇见你~
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place.
题意:
给一个矩阵,把有0的行列全部设置为0.
见代码
1 |
|