easy short efficient clean code
\nclass Solution {\npublic:\n    int maxCount(vector<int>&ban, int n, int mx) {\n        int ans=0, sum=0;\n        unordered_set<int>ust(begin(ban), end(ban));
```\nclass Solution {\npublic:\n    int maxCount(vector<int>&ban, int n, int mx) {\n        int ans=0, sum=0;\n        unordered_set<int>ust(begin(ban), end(ban));\n        for(int i=1;i<=n;++i){\n            if(ust.find(i)!=end(ust)){\n                continue;\n            }\n            if(sum+i>mx){\n                break;\n            }\n            sum+=i, ++ans;\n        }\n        return ans;\n    }\n};\n```
['C']