Determine whether a thief can reach the bank without encountering the police.
Unlock detailed company stats for this questionUpgrade
There is a grid with police stations, 1 thief and 1 bank. Every police station can patrol within k Manhattan distance. Determine whether there is any path for the thief to reach the bank without encountering the police.
Follow-up: what if the value of k is different for every police station?
Expect follow-ups like
- What if the value of k is different for every police station? (Approach: Dijkstra.)
Community answers
No answers contributed by the community yet.
Related courses

Course

Course
Course
