Back to all patterns

Backtracking on Grid

1 problems • Practice on LeetCode to earn credits

About This Pattern

Master the Backtracking on Grid pattern by practicing these problems organized by difficulty.Focus on the Key Signals - these are the indicators that tell you when to use this pattern.

Medium (1)

Word Search

Check if word exists in grid of letters (adjacent cells, no reuse).

Key Signals:

DFS from each cellMark visitedBacktrack and unmark