Amazon SDE-2 | Virtual Onsite | Finding the best possible empty locker for a given package
Anonymous User
1608

An Amazon pickup location has a series of lockers for packages to be dropped off and picked up.
Packages can come in many different sizes. We have lockers of varying sizes as well.
Model the lockers, packages and pickup location and implement an algorithm for efficiently
finding the best possible empty locker for a given package.

If anybody could provide an optimized solution to this, it would be great.

Comments (3)