โ† Amazon questions

Find best fit box for an item

Filed under Amazon

Given a sorted array of box sizes and an item size, find the smallest box size that is greater than or equal to the item size. Return -1 if no such box exists.

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.