Learn
Practice
Newsletter
Resources
Animations
New
F
Toggle theme
0
F
0
Toggle menu
← Back to All Animations
Running Sum of 1d Array
Bookmark
Input
Basic
All Ones
Mixed
With Negatives
Custom
nums
=
[1, 2, 3, 4]
nums
result
0
1
2
3
1
2
3
4
1
sum
algo
master
.
io
Step:
Start: result[0] = nums[0] = 1, then accumulate left to right
0 / 7
Input
Basic
All Ones
Mixed
With Negatives
Custom
nums
=
[1, 2, 3, 4]
0 / 7
nums
result
0
1
2
3
1
2
3
4
1
sum
algo
master
.
io
Step:
Start: result[0] = nums[0] = 1, then accumulate left to right