Back to Brain Tonic
AlgorithmsmediumBT-018

#18 Subarrays Divisible by 5

For the array [1, 2, 3, …, 20], how many contiguous subarrays have a sum that is divisible by 5?

Answer options
© 2026 FrontendX. All rights reserved.