← Amazon questions

Split number into N parts

Filed under Amazon

Given two positive integers total and n, divide total into n integer parts such that the sum of parts equals total and the difference between the smallest and largest part is minimized (at most 1)…

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.