Skip to content

Commit a322848

Browse files
authored
Update Trie_add_Search_using_dict.py
1 parent 10653c0 commit a322848

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Trie/Trie_add_Search_using_dict.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"""Trie DS implementation in Python"""
12
class Trie:
23
root = {}
34

@@ -29,4 +30,4 @@ def search(self,word):
2930
print(dictionary.search("p"))
3031
print(dictionary.search("pqrst"))
3132
dictionary.add("p")
32-
print(dictionary.search("p"))
33+
print(dictionary.search("p"))

0 commit comments

Comments
 (0)