Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
0
Toggle menu
← Back to All Animations
Running Sum of 1d Array
Bookmark
Input
Input 1
All Ones
Input 3
Even Numbers
Custom
nums
=
[1, 2, 3, 4]
Input (nums)
0
1
1
2
2
3
3
4
Running Sum
1
algo
master
.
io
Step:
Start: result[0] = nums[0], then accumulate from left to right
0 / 4
Input
Input 1
All Ones
Input 3
Even Numbers
Custom
nums
=
[1, 2, 3, 4]
0 / 4
Input (nums)
0
1
1
2
2
3
3
4
Running Sum
1
algo
master
.
io
Step:
Start: result[0] = nums[0], then accumulate from left to right