Skip to content

Commit f8e834b

Browse files
authored
Improved task 208
1 parent b501601 commit f8e834b

File tree

1 file changed

+8
-0
lines changed
  • src/main/java/g0201_0300/s0208_implement_trie_prefix_tree

1 file changed

+8
-0
lines changed

src/main/java/g0201_0300/s0208_implement_trie_prefix_tree/Trie.java

+8
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,11 @@ public boolean startsWith(String prefix) {
6666
return startWith;
6767
}
6868
}
69+
70+
/*
71+
* Your Trie object will be instantiated and called as such:
72+
* Trie obj = new Trie();
73+
* obj.insert(word);
74+
* boolean param_2 = obj.search(word);
75+
* boolean param_3 = obj.startsWith(prefix);
76+
*/

0 commit comments

Comments
 (0)