Learn
Practice
Newsletter
Resources
Animations
New
F
Toggle theme
0
F
0
Toggle menu
← Back to All Animations
Burst Balloons
Bookmark
Input
Example 1
Example 2
Three Balloons
Sequential
All Same
Custom
nums
=
[3, 1, 5, 8]
balloons =
4
3
1
1
2
5
3
8
4
r2
r3
r4
r5
l0
l1
l2
l3
each burst pays left x self x right of the balloons still standing
algo
master
.
io
Step:
Burst every balloon. Each burst pays left x self x right of the balloons still standing
0 / 62
Input
Example 1
Example 2
Three Balloons
Sequential
All Same
Custom
nums
=
[3, 1, 5, 8]
0 / 62
balloons =
4
3
1
1
2
5
3
8
4
r2
r3
r4
r5
l0
l1
l2
l3
each burst pays left x self x right of the balloons still standing
algo
master
.
io
Step:
Burst every balloon. Each burst pays left x self x right of the balloons still standing