06
How would you design a parking lot system?
Tap to write answer
0 words | 0 charsPress Enter ↵ to reveal
Your Attempt
0 wordsRefined Model Answer
ReferenceBefore designing it, I would clarify the requirements: vehicle types, spot types, entry and exit gates, payment flow, and whether the system needs to support reservations. At a high level, I would model the core entities as parking lot, floor, spot, vehicle, ticket, and payment. I would keep the design flexible so that adding a new spot type or pricing rule does not require rewriting the whole system. The trade-off is between keeping the model simple and supporting future changes, but I would lean toward a clean object-oriented design with clear responsibilities. If scale were important, I would also talk about concurrency for spot allocation and how to avoid double-booking.