Skip to content

Commit c91184e

Browse files
authored
Merge pull request gahogg#12 from RikJurriaans/main
fix bug in word search solution for javascript
2 parents ab684ff + 11e108c commit c91184e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Word Search - Leetcode 79/Word Search - Leetcode 79.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var exist = function(board, word) {
44
const W = word.length;
55

66
if (m === 1 && n === 1) {
7-
return board[0][0] === word[0];
7+
return board[0][0] === word;
88
}
99

1010
const backtrack = function(i, j, index) {

0 commit comments

Comments
 (0)