Puzzle of 1's and 0's

There is a rectangular puzzle board containing N×MN \times MN×Mnumber of places. Each place contains a number: either 111 or 000.


This is a companion discussion topic for the original entry at https://toph.co/p/puzzle-of-1-s-and-0-s