Python easy code with explanation And one line code
1.  Get target number by substracting from total sum of array to the goal\n2.  Since target can be postive or negative \n3.  Let take an example 10//3=3 and -10
**1.  Get target number by substracting from total sum of array to the goal\n2.  Since target can be postive or negative \n3.  Let take an example 10//3=3 and -10//3=-4 in Python\n4.  So take absolute of Target number\n5.  Add the quotient to the answer\n6.  If there is remainder then add 1 to the answer as remainder is less than limit otherwise no need to add**\n```\nclass Solution:\n    def minElements(self, nums: List[int], limit: int, goal: int) -> int:\n        s=sum(nums)\n        target=goal-s\n        ans=0\n    \n        ans+=abs(target)//limit\n        if abs(target)%limit!=0:\n            ans+=1\n        return ans\n```\n\n\n# **One line code of above code is given below**\n```\nclass Solution:\n    def minElements(self, nums: List[int], limit: int, goal: int) -> int:\n        return ceil(abs(goal-sum(nums))/limit)\n```\n\n**Hit Upvote if you like...**
['Python']