Tag:The whole bank
-
Daily question – Flip by column to get the maximum number of equal rows
Given a matrix consisting of several zeros and ones, select any number of columns from the matrix and flip each cell on it. After flipping, the value of the cell changes from 0 to 1, or from 1 to 0. Returns the maximum number of rows on which all values are equal after some flipping. […]