Medium · Hashing · about 20 minutes
Asked at Meta, ByteDance, Google, Amazon, Microsoft.
Count the non-empty contiguous slices of nums whose total leaves no remainder when divided by k.
nums
k