Skip to content

Commit ced7613

Browse files
committed
fix: Add and Search Word - Data structure design
1 parent 38184b4 commit ced7613

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

JavaScript/0211. Add and Search Word - Data structure design.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ class WordDictionary {
5252
const c = String.fromCharCode(97 + j); // 97 -> 'a'
5353
if (match(node[c], i + 1)) return true;
5454
}
55+
return false;
5556
} else {
5657
return match(node[word[i]], i + 1);
5758
}

0 commit comments

Comments
 (0)