Category
parking-lot
2 articles in this category
LLD for Parking Lot System: Designing a Smart Garage
TLDR: A Parking Lot system is the "Hello World" of Low-Level Design interviews. The core challenges are allocation (finding the nearest available spot in O(log n)) and pricing (calculating fees based on vehicle type and duration). Factory Pattern for...
ā¢4 min read
Implement LLD for Parking Lot: Code Walkthrough
TLDR: This is the code companion to the Parking Lot System Design post. We implement the core classes (ParkingLot, ParkingSpot, Ticket) in Java, apply the Singleton, Factory, and Strategy patterns, and use a Min-Heap to find the nearest available spo...
ā¢6 min read
