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.
Count the mismatched mirror pairs along rows and along columns, then take the cheaper direction.