Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ __init__
Method
__init__
strings/autocomplete_using_trie.py:7–8 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
5
6
class
Trie:
7
def
__init__(self) -> None:
8
self._trie: dict = {}
9
10
def
insert_word(self, text: str) -> None:
11
trie = self._trie
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected