Java Simple Solution
```\n public boolean asteroidsDestroyed(int mass, int[] asteroids) {\n        Arrays.sort(asteroids);             //sorting as the lower values combined first g
```\n public boolean asteroidsDestroyed(int mass, int[] asteroids) {\n        Arrays.sort(asteroids);             //sorting as the lower values combined first gives a good chance for earth to be safe\n        long m = mass;\n        for(int i:asteroids)\n        {\n          if(m<i)return false;           // if at any point any new asteroid weigh more then the earth we return false \n\t\t   else m+=i;                    //other wise the new mass will be added to earth\'s mass\n        }\n        return true;\n    }
['Sorting', 'Java']