mark all cols and rows with zero
pThis is an interview question: In a two dimensional array of size mxn,
for each element which value is zero, set to zero the entire row and
column where this element is located, and leave the rest of the elements
untouched./p pThe way I could htink of was to iterate through each element
in the array, and for each time I encounter a zero, I mark the entire row
and column with zeros. But this is naive, please suggest any
improvements./p