One liners, 98% speed
Runtime: 708 ms, faster than 98.60%\nMemory Usage: 26.8 MB, less than 96.28%\n\nclass Solution:\n    def minElements(self, nums: List[int], limit: int, goal: in
Runtime: 708 ms, faster than 98.60%\nMemory Usage: 26.8 MB, less than 96.28%\n```\nclass Solution:\n    def minElements(self, nums: List[int], limit: int, goal: int) -> int:\n        return ceil(abs(goal - sum(nums)) / limit)\n```
['Python', 'Python3']