educative.io

Educative

Separate Collection for Free Slots

Why not to keep a separate collection for Free Slot like
Map<VehicleType, Queue> vechileTypeWiseFreeSlots

This will help us find free slots easily.