30:00
Given an m x n board of characters and a list of strings words, return all words on the board.
m==board.length
n==board[i].length
1≤m,n≤12
board[i][j] is a lowercase English letter.
1≤words.length≤3×104
1≤words[i].length≤10
words[i] consists of lowercase English letters.
All words[i] are unique.
[]
| Variable | Value |
|---|---|
| R | 4 |
| C | 4 |
| words | oath,pea,eat,rain |
| board | Matrix(4x4) |
| found | [] |
| 1 | findWords(board, words) |