← Swiggy questions
CodingMedium

Minimize Calculated Sum using Array Elements

Filed under Swiggy

Given an array of numbers, repeatedly take two elements, add them to a running total, and push the sum back into the array until one element remains. Minimize the total sum.

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 Swiggy questions

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