974. Subarray Sums Divisible by K
Given an array nums of integers, return the number of (contiguous, non-empty) subarrays that have a sum divisible by k.
| |
Note:
- 1 <= nums.length <= 30000
- -10000 <= nums[i] <= 10000
- 2 <= k <= 10000
Solution
| |
974. Subarray Sums Divisible by K
Given an array nums of integers, return the number of (contiguous, non-empty) subarrays that have a sum divisible by k.
| |
Note:
| |