Java 3 lines: meaningless question. Better to modify as...
The question is too simple as medium.\nBetter to modify to: try to find minimum modifications required to make sum equals goal.\n\nclass Solution {\n    public 
The question is too simple as medium.\nBetter to modify to: try to find minimum modifications required to make `sum` equals `goal`.\n```\nclass Solution {\n    public int minElements(int[] nums, int limit, int goal) {\n        var sum=0L;\n        for(int num:nums) sum+=num;\n        return (int) ((Math.abs(sum-goal)+limit-1)/limit);\n    }\n}\n```
[]