← Questions

Inventory allocation with backorders

0
AmazonCodingLast asked Jul 2025

Orders arrive for products whose stock is limited. Allocate stock to orders as they come in; when a product runs out, record the unfilled part as a backorder and fill backorders in order when new stock arrives. Report each order's status.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding