C++✅✅ | Faster🧭 than 90%🔥| Sorting + Greedy Approach | Beginner Friendly |
\n\n# Code\n\n\nclass Solution {\npublic:\n\n    bool asteroidsDestroyed(long long mass, vector<int>& ass) {\n        \n        sort(ass.begin(), ass.end());\n\
\n\n# Code\n```\n\nclass Solution {\npublic:\n\n    bool asteroidsDestroyed(long long mass, vector<int>& ass) {\n        \n        sort(ass.begin(), ass.end());\n\n        for(int i = 0; i < ass.size(); ++i)\n        {\n           if(mass < ass[i]) return false;\n           \n           else mass += ass[i];   \n        }\n\n        return true;\n    }\n};\n\n\n```
['C++']