diff --git a/Leetcode 930 solution.cpp b/Leetcode 930 solution.cpp deleted file mode 100644 index 13c6fbca..00000000 --- a/Leetcode 930 solution.cpp +++ /dev/null @@ -1,16 +0,0 @@ -class Solution { -public: - int numSubarraysWithSum(vector& nums, int goal) { - unordered_map m; - m[0]=1; - int ans=0,s=0; - for(auto x:nums) - { - s+=x; - if(m.find(s-goal)!=m.end()) - ans+=m[s-goal]; - m[s]++; - } - return ans; - } -}; \ No newline at end of file