← Amazon questions

Best-fit crate allocator data structure

Filed under Amazon

Design a data structure to maintain a collection of empty crates of varying sizes that supports inserting a crate, searching for the smallest crate capable of holding an item of size S (best fit), and…

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.