C Sharpxxxxxxxxxx Assthatic.Solution
Intuition\n   I dont know,my friend said!\n# Approach\n  initially i was fu$ked ^[p]; when see this problem;\n  To slove this problem.... we need to visit Googl
# Intuition\n   I dont know,my friend said!\n# Approach\n  initially i was fu$ked ^[p]; when see this problem;\n  To slove this problem.... we need to visit Google search and type LeetCode and Login to it.....\nAter loging search for Problem No : 2126....\nand go to "SOLUTIONS" and select "C#" or "C Sharp"\nnow Search for "C Sharpxxxxxxxxxx Assthatic.Solution"\nJust realised that is a recursion\nHURRAY! you just passed the BASE CONDITION \nTHE FINAL STEP IS "just scroll down your mouse"\n\n\n# Complexity\n- Time complexity: \n  O(n log n) + O(n)\n\n- Space complexity:\n  O(n)\n\n# Code\n```\n// "H+E+R+E I+S T+H+E F+U+C+K+I+G S+0+L:\npublic class Solution {\n    public bool AsteroidsDestroyed(int mass, int[] asteroids) {\n        Array.Sort(asteroids);\n        long new_mass = mass;\n        foreach(int ass in asteroids)\n        {\n            if(ass <= new_mass)\n               new_mass += ass;\n            else\n               return false;\n        }\n        return true;\n    }\n}\n```
['C#']