C++ 5 line of code || 100% correct ✔️
*Please Upvote me :)*\n\nbool asteroidsDestroyed(int mass, vector<int>& a) {\n        \n        long long m = mass;\n        sort(a.begin(),a.end());\n        \
****Please Upvote me :)****\n```\nbool asteroidsDestroyed(int mass, vector<int>& a) {\n        \n        long long m = mass;\n        sort(a.begin(),a.end());\n        \n        for(auto i:a){\n            \n            if(i<=m){\n                m+=i;\n            }\n            else{\n                return false;\n            }\n        }\n        \n        return true;\n    }\n```
['C']