#3239
Minimum Number of Flips to Make Binary Grid Palindromic I
pupil · 510 · lc medium +27 · 74.9% accepted · 82 likes · top 86%
Description
You are given m x n binary matrix grid. You may flip any cells. Return the minimum flips needed so that all rows are palindromic OR all columns are palindromic.
Code
1
2
3