FIFO Order Allocator

Implement an inventory order allocator.

Given the total quantity required by one order and a list of existing inventory batches, consume the oldest batches first (FIFO), where the input order is from...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: