You are given an m $ imes$ n binary matrix matrix and an integer numSelect, which represents the number of distinct columns you must select.
A row is considered covered if all indices j where matrix[i][j]
Return the maximum number of rows that can be covered by choosing exactly numSelect distinct columns.
Constraints:
m matrix.length
n matrix[i].length
m, n
matrix[i][j] is either
numSelect n
You are given an m $ imes$ n binary matrix matrix and an integer numSelect, which represents the number of distinct columns you must select.
A row is considered covered if all indices j where matrix[i][j]
Return the maximum number of rows that can be covered by choosing exactly numSelect distinct columns.
Constraints:
m matrix.length
n matrix[i].length
m, n
matrix[i][j] is either
numSelect n