Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
0
Toggle menu
← Back to All Animations
Subarray Sums Divisible by K
Bookmark
Input
Input 1
Input 2
Input 3
Custom
nums
=
[4, 5, 0, -2, -3, 1]
,
k
=
5
count = 0
4
5
0
-2
-3
1
sum = 0
map = {}
algo
master
.
io
Step:
Initialize variables: sum=0, count=0, map={0:1}
0 / 20
Input
Input 1
Input 2
Input 3
Custom
nums
=
[4, 5, 0, -2, -3, 1]
,
k
=
5
0 / 20
count = 0
4
5
0
-2
-3
1
sum = 0
map = {}
algo
master
.
io
Step:
Initialize variables: sum=0, count=0, map={0:1}