Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 1167. Minimum Cost to Connect Sticks
Given a list of stick lengths where merging any two sticks costs the sum of their lengths, compute the minimum total cost to combine all sticks into one. This is a greedy/Huffman-like problem: repeatedly choose the two smallest sticks (min-heap) to minimize accumulated merge cost.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.