Count all sub-arrays having sum divisible by k
Filed under Cloudera
The question
Given an array of integers, count the total number of subarrays whose sum is divisible by a given integer k.
No write-up yet. Related questions below have one.
Related Cloudera questions
Collected from public candidate posts and coding forums. Updated Nov 2026.