Concept Flow - Word Search in Grid Using Backtracking
Start at each cell in grid
Check if cell matches first letter of word
If match, start backtracking
Explore neighbors (up, down, left, right)
Check if next letter matches and not visited
If matches, recurse deeper
If full word matched
→Return True
If no match or dead end
→Backtrack: unmark visited
Try next neighbor or next cell in grid
If all cells tried and no match
→Return False
The search starts from each cell, tries to match the word by moving in four directions using backtracking, marking visited cells to avoid reuse, and backtracks on dead ends.
