← Questions

Fill an order from the oldest inventory batches first

0
AirbnbCodingLast asked Aug 2026

A coding interview question asked in Airbnb's coding round, last asked Aug 2026. It tests queues, inventory and simulation.

A warehouse stores stock in batches received at different times. Fill an order by taking units from the oldest batch first, moving to the next oldest as each one runs out.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • Airbnb · Coding · Last asked Aug 202645 min · Live coding, one or two rounds, from the same pool as the screen

What it tests

queues · inventory · simulation

Your code and the AI tutor open when you unlock this question.