🟢🔴🟢 Beats 100.00%👏 3 Lines Solutions 🟢🔴🟢
\nclass Solution {\n  int minElements(List<int> nums, int limit, int goal) {\n\n    int total = nums.fold(0,(a,b)=> a+b);\n    int add = goal - total;\n    retu
```\nclass Solution {\n  int minElements(List<int> nums, int limit, int goal) {\n\n    int total = nums.fold(0,(a,b)=> a+b);\n    int add = goal - total;\n    return (add.abs() / limit).ceil();\n    \n  }\n}\n```
['C', 'Python', 'C++', 'Java', 'JavaScript', 'C#', 'Dart']