Clean Python 3, straightforward
Time: O(N + diff / limit)\nSpace: O(1)\n\nclass Solution:\n    def minElements(self, nums: List[int], limit: int, goal: int) -> int:\n        total = sum(nums)\
Time: `O(N + diff / limit)`\nSpace: `O(1)`\n```\nclass Solution:\n    def minElements(self, nums: List[int], limit: int, goal: int) -> int:\n        total = sum(nums)\n        diff = abs(total - goal)\n        return diff // limit + (diff % limit > 0)\n```
[]