← Amazon questions

Minimum Cost to Melt Balls

Filed under Amazon

Given n balls with different weights, merge all balls into a single large ball. The cost to combine any two balls is the sum of their weights. Find the minimum total cost required to combine all…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.