Python3 Math O(1)
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution:\n    def minElements(self, nums: List[int], limit: int, goal: int) -> int:\n\n        s = sum(nums)\n\n        req = abs(goal - s)\n        if req == 0:\n            return 0\n        if req < limit:\n            return 1\n        elif req % limit == 0:\n            return req //limit\n        else:\n            return req//limit +1 \n        \n        \n        return 0\n\n\n        \n        \n\n\n```
['Python3']