Minimum Number of Flips to Make Binary Grid Palindromic II at Google
Medium25.4% acceptance
This problem has 12.5% frequency at Google.
Problem Description
You are given an `m x n` binary matrix `grid`. A row or column is considered **palindromic** if its values read the same forward and backward. You can **flip** any number of cells in `grid` from `0` to `1`, or from `1` to `0`. Return the **minimum** number of cells that need to be flipped to make...
Read full problem and hintsTopics
More Google Questions
Two SumEasyMedian of Two Sorted ArraysHardLongest Common PrefixEasyTrapping Rain WaterHardLongest Consecutive SequenceMedium
View all Google questions