Problem 3239 · Medium

Minimum Number of Flips to Make Binary Grid Palindromic I

Count the mismatched mirror pairs along rows and along columns, then take the cheaper direction.

Open the interactive visualisation