DSA Key Problems

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.