Set Matrix Zeroes

class Solution {
public:
    void setZeroes(vector>& matrix) 
    {
        if(matrix.empty()|| matrix[0].empty())
            return;
        int m=matrix.size();
        int n=matrix[0].size();
        vector row(m,false);
        vector column(n,false);
        for(int i=0;i

你可能感兴趣的:(leetcode)