Set Matrix 0 by flipping row or column
Anonymous User
1731

Hello coders,

I had a question in my interview and I can't think of a stright solution. Question goes like this:
I have a 2D matrix of 0 and 1
Only operation allowed is to either flip whole row or columns element ( by flipping each elements from 0 to 1 or from 1 to 0). For Example: [1 0 1] -> [0 1 0]
Question - Find an algorithm to determine if a zero matric can be obtained by any number of rows or column operations ?

I'm so stuck on this one. Any help ?

Comments (9)