//https://leetcode.com/problems/set-matrix-zeroes/ class Solution { public: void setZeroes(vector >& matrix) { int rownum = matrix.size(); if(rownum==0) return; int colnum = matrix[0].size(); if(colnum==0) return; bool hasZeroFirstRow = false; bool hasZeroFirstCol = false; /// Does first Row have ZERO element ? for(int j=0;j