Available question text
Determine if you can reach target from source on a 10^6×10^6 grid with at most 200 blocked cells — the key challenge is that the blocked cells can form a small enclosed region despite the huge grid, so you must detect enclosure rather than search the whole grid. The typical approach is a bounded BFS/DFS from both source and target limited by the maximum area those blocked cells can enclose (≈O(N^2) with N≤200) to decide reachability.
Related questions
Continue with questions that share topics or the same question type.
- Escape the Maze
Coding
- Escape Room Leaderboard
Coding
- Escape The Ghosts
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 1036. Escape a Large Maze
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source