Available question text
On an infinite grid where you and ghosts move 1 step (or stay) per turn, determine whether you can reach the target strictly before every ghost; this reduces to checking that every ghost's Manhattan distance to the target is greater than your Manhattan distance from (0,0) to the target.
Related questions
Continue with questions that share topics or the same question type.
- Escape a Large Maze
Coding
- Escape Room Leaderboard
Coding
- Escape the Maze
Coding
- Escape the Spreading Fire
Coding · Array · Binary Search · Breadth-First Search
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 789. Escape The Ghosts
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source