Last Stone Weight — Interactive Visualizer
Repeatedly smash the two heaviest stones in a max-heap until at most one stone remains.