Prefix Sum
\ndef answerQueries(self, nums: List[int], queries: List[int]) -> List[int]:\n\tnums.sort()\n\tfor i in range (1,len(nums)):\n\t\tnums[i]+=nums[i-1]\n\tsol=[]\n
```\ndef answerQueries(self, nums: List[int], queries: List[int]) -> List[int]:\n\tnums.sort()\n\tfor i in range (1,len(nums)):\n\t\tnums[i]+=nums[i-1]\n\tsol=[]\n\tfor i in queries:\n\t\tt=0\n\t\tfor x in nums:\n\t\t\tif x>i:\n\t\t\t\tbreak\n\t\t\tt+=1\n\t\tsol.append(t)\n\treturn sol\n```\n\t\t
['Python']