C++ Simple Solution faster than 100%
\nclass Solution {\npublic:\n    int numRescueBoats(vector<int>& people, int limit) {\n        sort(people.begin(), people.end());\n        int res = 0;\n      
```\nclass Solution {\npublic:\n    int numRescueBoats(vector<int>& people, int limit) {\n        sort(people.begin(), people.end());\n        int res = 0;\n        int l = 0, r = people.size()-1;\n        while (l <= r) {\n            if (people[l] + people[r] <= limit)\n                l++;\n            res++;\n            r--;\n        }\n        return res;\n    }\n};\n```\n**Like it? please upvote...**
['C']