Simple JS
ma# Code\n\n/**\n * @param {number[]} nums\n * @return {number}\n */\nvar maxScore = function(nums) {\n    nums.sort((a,b)=>{return b-a})\n    let n = 0\n    le
ma# Code\n```\n/**\n * @param {number[]} nums\n * @return {number}\n */\nvar maxScore = function(nums) {\n    nums.sort((a,b)=>{return b-a})\n    let n = 0\n    let c = nums[n]\n    while(c > 0){\n        n++\n        c += nums[n]\n    }\n    return n\n};\n```
['Math', 'Sorting', 'JavaScript']