Given a nums and two integers modulo and k.
A subarray from index l to r is defined as interesting if, letting cnt be the number of indices i in the range l i r such that nums[i] % modulo == k, the condition cnt % modulo == k holds true.
Return the total number of interesting subarrays.
Constraints:
nums.length
nums[i]
modulo
k modulo
Given a nums and two integers modulo and k.
A subarray from index l to r is defined as interesting if, letting cnt be the number of indices i in the range l i r such that nums[i] % modulo == k, the condition cnt % modulo == k holds true.
Return the total number of interesting subarrays.
Constraints:
nums.length
nums[i]
modulo
k modulo