Problem
Given a list of non-negative integers nums and a positive integer k, return true if there is a contiguous subarray of length at least two whose sum is a multiple of `k`. Zero counts as a multiple of every k.
Example 1
- Input
- nums = [23, 2, 4, 6, 7], k = 6
- Output
- true
- Why
- [2, 4] sums to 6
Example 2
- Input
- nums = [23, 2, 6, 4, 7], k = 6
- Output
- true
- Why
- the whole list sums to 42
Example 3
- Input
- nums = [23, 2, 6, 4, 7], k = 13
- Output
- false
Constraints
1 <= nums.length <= 10^50 <= nums[i] <= 10^90 <= sum(nums) <= 2^31 - 11 <= k <= 2^31 - 1