Put negative numbers as far back as possible
Approach\n Describe your approach to solving the problem. \nPut negative numbers as far back as possible.\n\n# Complexity\n- Time complexity:\n Add your time co
# Approach\n<!-- Describe your approach to solving the problem. -->\nPut negative numbers as far back as possible.\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n$$O(nlog(n))$$\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```python3 []\nclass Solution:\n    def maxScore(self, nums: List[int]) -> int:\n        return sum(x > 0 for x in list(accumulate(sorted(nums, reverse=True))))\n```
['Python3']