InterviewDB
Question
Park Navigation: Find the Shortest Path Through a Park Map Avoiding Restricted Zones
phone
Question Details
Problem A park is represented as an m x n grid. Cells are 0 (open path), 1 (obstacle), or 2 (rest area -- costs double movement). Find the shortest-time path from the entrance (0,0) to the exit (m-1,n-1). Moving to an adjacent cell costs 1 time unit,…
Full Details
🔒
Unlock full leaked content
Full insider details, leaked discussions, and candidate experiences.
Get Premium →Topics
Coding
Phone