Learn
Practice
Newsletter
Resources
Animations
New
F
Toggle theme
0
F
0
Toggle menu
← Back to All Animations
Continuous Subarray Sum
Bookmark
Input
Classic
Full Array
No Match
Two Zeros
Custom
nums
=
[23, 2, 4, 6, 7]
,
k
=
6
k =
6
found =
false
0
1
2
3
4
23
2
4
6
7
algo
master
.
io
Step:
Start: find a subarray of length >= 2 whose sum is a multiple of k
0 / 10
Input
Classic
Full Array
No Match
Two Zeros
Custom
nums
=
[23, 2, 4, 6, 7]
,
k
=
6
0 / 10
k =
6
found =
false
0
1
2
3
4
23
2
4
6
7
algo
master
.
io
Step:
Start: find a subarray of length >= 2 whose sum is a multiple of k