Find the nearest parking spot for a user arriving at any entrance of a multi-entrance parking lot.
Unlock detailed company stats for this questionUpgrade
Spot locations are stored as (x, y) coordinates and the parking lot has multiple entries. The user comes at any of the entries and must be given the nearest parking spot. Which algorithm and data structure would you use?
Community answers
No answers contributed by the community yet.
Related questions
Design the classes for a multi-floor parking lot.Design a parking lot system that finds the best spot for each vehicle size.Related courses

Course

Course
Course
