c++ easy
class Solution {\npublic:\n    int minElements(vector& nums, int limit, int goal) {\n        long int sum=0;\n        for(int i=0;i<nums.size();i++)\n        su
class Solution {\npublic:\n    int minElements(vector<int>& nums, int limit, int goal) {\n        long int sum=0;\n        for(int i=0;i<nums.size();i++)\n        sum+=nums[i];\n        \n        long int count=0;\n        if(sum==goal)\n            return 0;\n            sum=abs(goal-sum);\n            count=sum/limit;\n            if(sum%limit!=0)\n                count++; \n        return count;\n    }\n};
[]