one-liner [Ruby]
Sort asteroids, check if each can collide with planet and update planet\'s mass. \n\n```\ndef asteroids_destroyed(mass, asteroids)\n    asteroids.sort.all? {|a|
Sort asteroids, check if each can collide with planet and update planet\'s mass. \n\n```\ndef asteroids_destroyed(mass, asteroids)\n    asteroids.sort.all? {|a| mass >= a && (mass+= a)}\nend
['Ruby']