LastStone Weight
Solve the Last Stone Weight problem by using a max-heap to simulate repeated pairwise subtraction until one or no stones remain.
Solve the Last Stone Weight problem by using a max-heap to simulate repeated pairwise subtraction until one or no stones remain.