diff --git a/2845. Count of Interesting Subarrays b/2845. Count of Interesting Subarrays new file mode 100644 index 0000000..b6864d6 --- /dev/null +++ b/2845. Count of Interesting Subarrays @@ -0,0 +1,17 @@ +class Solution { +public: + long long countInterestingSubarrays(vector& nums, int modulo, int k) { + int n = nums.size(); + unordered_map fre; + fre[0]=1; + long long ans =0; + int cnt =0; + for(int r=0; r