Skip to content

Commit 59b3929

Browse files
committed
Update implement-trie-prefix-tree.cpp
1 parent ea40018 commit 59b3929

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

C++/implement-trie-prefix-tree.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Trie {
4444
return childSearch(prefix);
4545
}
4646

47-
TrieNode * childSearch(const string& word) {
47+
TrieNode *childSearch(const string& word) {
4848
auto *cur = root_;
4949
for (const auto& c : word) {
5050
if (cur->leaves.count(c)) {
@@ -57,7 +57,7 @@ class Trie {
5757
}
5858

5959
private:
60-
TrieNode* root_;
60+
TrieNode *root_;
6161
};
6262

6363
// Your Trie object will be instantiated and called as such:

0 commit comments

Comments
 (0)