Back to DSA sheet
Word Search
MediumBacktrackingGiven a grid of letters and a word, return true if the word can be formed from sequentially adjacent cells, without reusing a cell.
Constraints
- 1 <= m, n <= 6
- 1 <= word.length <= 15
Sheets
Blind 75Grind 75NeetCode 150NeetCode 250Striver A2Z
word-search.cpp
Loading editor
Custom input (stdin)
Output
Run your code to see its output.