Multi-Level Parking Lot
Asked at Uber · Coding Questions · Difficulty: Medium · Last asked Jun 6, 2026
Design a parking lot with several levels. Each level is a fixed row of slots, and every slot is either a small `bike` slot or a larger `car` slot. Vehicles are motorcycles, cars and buses, each with a unique license plate, and each type may use only the slots that fit it. Build the class that parks and removes vehicles and reports how many slots are free.
Loading the problem…