Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
0
Toggle menu
← Back to All Animations
Last Stone Weight
Bookmark
Input
Example 1
Single Stone
Pairs Cancel
Custom
stones
=
[2, 7, 4, 1, 8, 1]
stones
2
7
4
1
8
1
max_heap
algo
master
.
io
Step:
Start: Find last stone weight for stones = [2, 7, 4, 1, 8, 1]
0 / 14
Input
Example 1
Single Stone
Pairs Cancel
Custom
stones
=
[2, 7, 4, 1, 8, 1]
0 / 14
stones
2
7
4
1
8
1
max_heap
algo
master
.
io
Step:
Start: Find last stone weight for stones = [2, 7, 4, 1, 8, 1]