JS || Solution by Bharadwaj
Code\n\nvar minElements = (nums, limit, goal) => Math.ceil(Math.abs(nums.reduce((prev, cur) => prev - cur, goal) / limit));\n
# Code\n```\nvar minElements = (nums, limit, goal) => Math.ceil(Math.abs(nums.reduce((prev, cur) => prev - cur, goal) / limit));\n```
['JavaScript']