Learn
Practice
Newsletter
Resources
Resume
New
F
Toggle theme
0
F
Toggle theme
0
Toggle menu
← Back to All Animations
Minimum Number of Arrows to Burst Balloons
Bookmark
Input
Example 1
No overlap
All overlapping
Nested balloons
Complex case
Single balloon
Custom
points
=
[[10,16],[2,8],[1,6],[7,12]]
[10,16]
[2,8]
[1,6]
[7,12]
burst
algo
master
.
io
Step:
Start: Find minimum arrows to burst all balloons
Variable
Value
points
Matrix(4x2) [[10,16]...]
arrows
-
current_end
-
i
-
current_balloon
-
0 / 9
Input
Example 1
No overlap
All overlapping
Nested balloons
Complex case
Single balloon
Custom
points
=
[[10,16],[2,8],[1,6],[7,12]]
0 / 9
[10,16]
[2,8]
[1,6]
[7,12]
burst
algo
master
.
io
Step:
Start: Find minimum arrows to burst all balloons
Visualization
Variables