Flip as few bits as possible so that every row and every column of a binary grid reads the same both ways, and the number of 1s is divisible by 4.
Flip as few bits as possible so that every row and every column of a binary grid reads the same both ways, and the number of 1s is divisible by 4.
Opens with the full question.