Problems / Heap / Priority Queue / Last Stone Weight
#65 Easy Time O(n log n) Space O(n) Animated

Last Stone Weight

Simulate smashing stones and return the last stone weight.

LeetCode ↗
Approach: Max-Heap
Click play to start
Step 0 / 0
Press play to start the visualization.

Steps