Leetcode #Day12 #Java #Last Stone Weight
Leetcode[day12] - Last Stone Weight
We have a collection of stones, each stone has a positive integer weight. Each turn, we choose the two heaviest stones and smash them together. Suppose the stones have weights x and y with x