Skip to content

Commit c43db42

Browse files
authored
Update 79-word-search.js
1 parent 233a514 commit c43db42

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

79-word-search.js

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ function dfs(board, x, y, dirs, word, start) {
3636
}
3737

3838
// 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
3940

4041
// another
4142

0 commit comments

Comments
 (0)