← Amazon questions

Find best fit for a packet in a rack (Ceil value)

Filed under Amazon

Given a sorted array of rack sizes in increasing order and a packet size, find the index of the best fit for the packet in the rack, which is equivalent to finding the ceiling value (smallest element…

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.