Back to problems

Schedule Orders onto Planes

AI Coding · Optiver · Hard

CargoScheduler You are designing a system to assign cargo items from incoming orders to a fleet of planes. Each plane has a unique departure time and a maximum cargo capacity. As items are assigned, the plane's remaining capacity decreases. Each order consists of a ship time followed by a list of item sizes. An order can only be loaded onto planes whose departure time is strictly greater than the order's ship time. The items of a single order may be distributed among…

Checking your access…