You are given an m by n binary matrix grid.
A move consists of selecting any row or column and toggling every value in it, changing all
Each row of the matrix represents a binary number. The score of the matrix is defined as the sum of these binary numbers across all rows.
Return the maximum possible score achievable after performing any number of moves.
Constraints:
m grid.length
n grid[i].length
m, n
grid[i][j] is either
You are given an m by n binary matrix grid.
A move consists of selecting any row or column and toggling every value in it, changing all
Each row of the matrix represents a binary number. The score of the matrix is defined as the sum of these binary numbers across all rows.
Return the maximum possible score achievable after performing any number of moves.
Constraints:
m grid.length
n grid[i].length
m, n
grid[i][j] is either