Simple solution | easy to understand | Combinations
Just check all the combinations of column\n\n\n\nclass Solution:\n    def maximumRows(self, mat: List[List[int]], cols: int) -> int:\n        m, n = len(mat), l
Just check all the combinations of column\n\n```\n\nclass Solution:\n    def maximumRows(self, mat: List[List[int]], cols: int) -> int:\n        m, n = len(mat), len(mat[0])\n        maxRows = 0\n        \n        colToChoose = list(combinations(list(range(n)), cols))\n        \n        for col in colToChoose:\n            col = set(col)\n            rowHidden = 0\n            for row in mat:\n                canHide = True\n                for i in range(n):\n                    if(row[i] and i not in col):\n                        canHide = False\n                        break\n                if(canHide):\n                    rowHidden += 1\n            maxRows = max(maxRows, rowHidden)\n        return maxRows\n            \n        \n```
['Python']