C++: I had a slightly goofy variation but it was accepted

I kept track of the rows and columns that were zeroed out with vectors.
I decided to change the 1 values to a special third value when I “zeroed” them out.

Then, at the end, I set all of the “special values” back to 0.

Click here to start solving coding interview questions