Easy python solution || runtime 100% memory 100%
Code\n\nclass Solution(object):\n    def maxScore(self, nums):\n        """\n        :type nums: List[int]\n        :rtype: int\n        """\n        nums.sort(
# Code\n```\nclass Solution(object):\n    def maxScore(self, nums):\n        """\n        :type nums: List[int]\n        :rtype: int\n        """\n        nums.sort()\n        sm=sum(nums)\n        cnt=0\n        for i in nums:\n            if sm>0:cnt+=1\n            sm-=i\n        return cnt\n```
['Sorting', 'Prefix Sum', 'Python']