Skip to content

Commit d8f6e45

Browse files
committed
Update add-and-search-word-data-structure-design.cpp
1 parent 9a83d85 commit d8f6e45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/add-and-search-word-data-structure-design.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class WordDictionary {
3131
return searchWord(word, root_, 0);
3232
}
3333

34-
bool searchWord(string word, TrieNode* node, int s) {
34+
bool searchWord(string word, TrieNode *node, int s) {
3535
if (s == word.length()) {
3636
return node->isString;
3737
}

0 commit comments

Comments
 (0)