Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
0
Toggle menu
← Back to All Animations
Maximum Average Subarray I
Bookmark
Input
Example 1
Window size 1
All negative
Custom
nums
=
[1, 12, -5, -6, 50, 3]
,
k
=
4
1
12
-5
-6
50
3
currentSum = 0
maxAvg = 0.00
algo
master
.
io
Step:
Start of algorithm
0 / 11
Input
Example 1
Window size 1
All negative
Custom
nums
=
[1, 12, -5, -6, 50, 3]
,
k
=
4
0 / 11
1
12
-5
-6
50
3
currentSum = 0
maxAvg = 0.00
algo
master
.
io
Step:
Start of algorithm