Design a parking lot
12406

Requirements:

  1. The parking lot has one level with multiple rows of spots.
  2. The parking lot can park motorcycles, cars, and buses.
  3. The parking lot has motorcycle spots, compact spots, and large spots.
  4. A motorcycle can park in any spot.
  5. A car can park in either a single compact spot or a single large spot.
  6. A bus can park in five large spots that are consecutive and within the same row. It cannot park in small spots.
  7. Someone should be able to find where their vehicle is parked via an ID
  8. You need to display open spots in the garage on a board outside at all times
Comments (4)