← Amazon questions
CodingReported in a candidate post, Aug 2025

Minimize sum after repeatedly merging two elements

Filed under Amazon

Repeatedly remove any two elements from an array and insert their sum back. Each merge costs the sum of the two elements removed. Minimise the total cost until one element remains. (Interpreted as the…

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.