We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9153db2 commit b373c99Copy full SHA for b373c99
data_structures/trie/trie.py
@@ -11,7 +11,7 @@ def __init__(self):
11
self.nodes = dict() # Mapping from char to TrieNode
12
self.is_leaf = False
13
14
- def insert_many(self, words: [str]):
+ def insert_many(self, words: list[str]):
15
"""
16
Inserts a list of words into the Trie
17
:param words: list of string words
0 commit comments