InterviewDB Question

Parking Space: Find the Optimal Parking Spot Minimizing Walk Distance to an Entrance

Question Details

Problem A parking lot is represented as a 2D grid where '.' is an empty space, 'X' is occupied, and 'E' is the entrance. Find the empty parking space closest to the entrance by Manhattan distance. If there are ties, return the topmost-leftmost space.…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Coding Onsite Phone