Max Rows Covered by Columns

Given a binary matrix matrix with r rows and c columns, and an integer k, select exactly k columns. A row is covered when every cell of that row that holds a 1 sits in one of the selected columns. A row with no 1s is covered by any selection, including the empty selection. Return the maximum number of covered rows over all selections of exactly k columns.

Examples
Input: [[[0,0,0],[1,0,1],[0,1,1],[0,0,1]],2]
Output: 3
Hints

Max Rows Covered by Columns

Given a binary matrix matrix with r rows and c columns, and an integer k, select exactly k columns. A row is covered when every cell of that row that holds a 1 sits in one of the selected columns. A row with no 1s is covered by any selection, including the empty selection. Return the maximum number of covered rows over all selections of exactly k columns.