Easy C++ Soln || Simple subtraction || TC ->O(N) || SC->O(1)
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution {\npublic:\n    int minElements(vector<int>& nums, int limit, int goal) {\n        long long sum=accumulate(nums.begin(),nums.end(),0*1LL);\n        cout<<sum<<" ";\n       long long diff=goal-sum;\n        diff=abs(diff);\n        long long ans=0;\n        while(diff>0){\n            ans++;\n            diff-=limit;\n        }\n\n        return ans;\n    }\n};\n```
['C++']