easy

Design a Parking Lot

Design a parking lot system to manage vehicle parking across multiple floors. Include features for parking spot assignment based on vehicle size, spot availability checking, and fee calculation based on parking duration.

Suggested time: 45 minutes

Loading the workspace...

About this problem

A parking lot sounds simple: car drives in, parks, pays, leaves. But underneath, the system must manage multi-floor spot inventories, match vehicles to correctly sized spots, handle concurrent entry gates without double-booking, and support pluggable pricing strategies. Let's break this down.

What your design needs to cover

  • Assign Spot by Vehicle Size

  • Issue Ticket on Entry

  • Compute Fee on Exit

  • Handle Lot-Full Scenario

  • Support Multiple Floors

Key challenges the editorial covers

Learn from other designs

Related problems

Guides