easy short efficient clean code
\nclass Solution {\npublic:\n    int maxScore(vector<int>& nums) {\n        sort(begin(nums), end(nums));\n        long long ans=0, sum=0;\n        for(auto it=
```\nclass Solution {\npublic:\n    int maxScore(vector<int>& nums) {\n        sort(begin(nums), end(nums));\n        long long ans=0, sum=0;\n        for(auto it=crbegin(nums);it!=crend(nums);++it){ // iterate from right(+ve)  to left (-ve)\n            sum = sum + *it;\n            if(sum<1){\n                break;\n            }\n            ++ans;\n        }\n        return ans;\n    }\n};\n```
['Greedy', 'C', 'Sorting']