We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ab684ff + 11e108c commit c91184eCopy full SHA for c91184e
Word Search - Leetcode 79/Word Search - Leetcode 79.js
@@ -4,7 +4,7 @@ var exist = function(board, word) {
4
const W = word.length;
5
6
if (m === 1 && n === 1) {
7
- return board[0][0] === word[0];
+ return board[0][0] === word;
8
}
9
10
const backtrack = function(i, j, index) {
0 commit comments