1167. Minimum Cost to Connect Sticks
Find the minimum cost to connect all sticks into one, where connecting two sticks of lengths x and y costs x+y.
Find the minimum cost to connect all sticks into one, where connecting two sticks of lengths x and y costs x+y.