[Python 3] Brute-force
python3 []\nclass Solution:\n    def maxCount(self, banned: List[int], n: int, maxSum: int) -> int:\n        res, s, b = 0, 0, set(banned)\n        for i in ran
```python3 []\nclass Solution:\n    def maxCount(self, banned: List[int], n: int, maxSum: int) -> int:\n        res, s, b = 0, 0, set(banned)\n        for i in range(1, n+1):\n            if s + i > maxSum: break\n            if i not in b:\n                s += i\n                res += 1\n\n        return res\n```\n
['Python', 'Python3']