Design a Parking Garage with Dynamic Pricing
Design a parking garage with demand-based pricing. Include spot assignment, vehicle type handling, occupancy-driven dynamic price adjustments, fee calculation, and real-time availability tracking.
Suggested time: 45 minutes
Loading the workspace...
About this problem
A parking garage with dynamic pricing is a rich OOD problem because it combines real-time occupancy tracking, strategy-based pricing algorithms, concurrent spot assignment across multiple gates, and interval-based fee calculation. Let's define exactly what the system must do.
What your design needs to cover
Assign Parking Spot by Vehicle Type
Dynamic Pricing Based on Real-Time Occupancy
Issue Ticket on Entry, Compute Fee on Exit
Track Real-Time Occupancy
Key challenges the editorial covers
Learn from other designs
Design a Parking Garage with Dynamic Pricing: editorial solution
Community solutions for Design a Parking Garage with Dynamic Pricing
Related problems
Design a Music Streaming App (hard)
Design a Notification System (hard)
Design an Object Pool (hard)