Easy solution in c++
//smjh\n\n\nbool asteroidsDestroyed( long long int mass, vector<int>& asteroids) {\n        sort(asteroids.begin(),asteroids.end());\n        for(int i = 0;i<as
//smjh\n\n```\nbool asteroidsDestroyed( long long int mass, vector<int>& asteroids) {\n        sort(asteroids.begin(),asteroids.end());\n        for(int i = 0;i<asteroids.size();i++){\n           if(mass<asteroids[i])\n               return false;\n            \n            mass += asteroids[i];\n        }\n        return true;\n        \n    }\n```\nDo upvote if you find it helpful
['C']