Array
2845. Count of Interesting Subarrays
Given nums, modulo, and k. A subarray [l..r] is interesting if the number of indices i in it with nums[i] % modulo == k (call it cnt) satisfies cnt % modulo == k. Count the interesting subarrays.…
Loading…