We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 233a514 commit c43db42Copy full SHA for c43db42
79-word-search.js
@@ -36,6 +36,7 @@ function dfs(board, x, y, dirs, word, start) {
36
}
37
38
// time complexity: O(M * N * 3^L), where L is the length of word.
39
+// we have a visited array and we never go back, so 3 directions
40
41
// another
42
0 commit comments