Problem 1072 · Medium

Flip Columns For Maximum Number of Equal Rows

Rows that are equal or complementary to a given row can be made all equal by one set of column flips, so count those matches for each row.

Open the interactive visualisation