Problem 861 · Medium

Score After Flipping Matrix

Flip rows and columns of a binary matrix to maximise the sum of its rows read as binary numbers. The visual fixes the leading column first, then flips columns that improve the score.

Open the interactive visualisation