← Amazon questions

Form two numbers from an array of digits with equal or near lengths

Filed under Amazon

Given an array of digits from 0 to 9, arrange them to form two numbers such that the sum of the numbers is minimized. If the array length is even, both numbers must have an equal number of digits. If…

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.