Place items into the earliest bin that fits

0
Remix

Bins have capacities and items arrive in order. Put each item into the first bin, from left to right, that still has room for it. Return where each item goes. Do better than scanning every bin per item.

AmazonTechnical phone screenLast asked Aug 2025
No answer yet. Write the first one; the best answer gets endorsed.