Minimum Cost to Connect Sticks
Given stick lengths, repeatedly join two sticks at a cost equal to their combined length and return the minimum total cost to obtain one stick.
Given stick lengths, repeatedly join two sticks at a cost equal to their combined length and return the minimum total cost to obtain one stick.