Low-Level Design of a Parking Lot System
Design a parking lot with 10,000 spots, featuring multiple entries and exits. Implement a function getTicket() that returns the parking spot location nearest to a given entry.
Asked at:
Microsoft
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
Mid March, 2025
Microsoft
Mid-level
parkingLot with 10k spots. Multiple entries and exits. Generate a function getTicket() such that it returns the parking spot location which is nearest/closest to a given entry.
Your account is free and you can post anonymously if you choose.