java 100% I hate math!!
```\nclass Solution {\n    public int minElements(int[] nums, int limit, int goal) {\n        long total = 0, diff = 0;\n        for(int n : nums) total += n;\n
```\nclass Solution {\n    public int minElements(int[] nums, int limit, int goal) {\n        long total = 0, diff = 0;\n        for(int n : nums) total += n;\n        diff = Math.abs(goal - total);\n        long x = diff % limit, y = diff / limit;\n        return x == 0 ? (int) y : (int) (y + 1);\n    }\n}
[]