Python Medium
\nclass Solution:\n    def minElements(self, nums: List[int], limit: int, goal: int) -> int:\n        s = sum(nums)\n\n        left = s - goal\n\n        if lef
```\nclass Solution:\n    def minElements(self, nums: List[int], limit: int, goal: int) -> int:\n        s = sum(nums)\n\n        left = s - goal\n\n        if left == 0:\n            return 0\n\n\n        left = abs(left)\n\n\n        amount = left // limit\n\n        left %= limit\n        if left:\n            amount += 1\n\n        return amount \n            \n```
['Python3']