← Amazon questions
CodingMedium

Minimum cost to merge Alexa devices

Filed under Amazon

Given an array representing diameters of N devices, merge them into one. The cost of merging two devices is the sum of their diameters. Find the minimum total cost to merge all devices.

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.