BacktrackingEvidence Contributing
Backtracking - Grid Path Search
DFS with backtracking over a 2D grid, marking/unmarking visited cells while searching for a path matching a target.
Practice Problems: 2
Difficulty: 0 Easy·1 Medium·1 Hard
Core technique
Review the technique, then try the mapped problems below. The right approach depends on each problem's constraints.
- Core Strategy: DFS with backtracking over a 2D grid, marking/unmarking visited cells while searching for a path matching a target.