Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ByteByteGoHq/coding-interview-patterns
/ __init__
Method
__init__
python3/Tries/design_a_trie.py:8–9 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
6
7
class
Trie:
8
def
__init__(self):
9
self.root = TrieNode()
10
11
def
insert(self, word: str) -> None:
12
node = self.root
Callers
nothing calls this directly
Calls
1
TrieNode
Class · 0.70
Tested by
no test coverage detected