Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/ndleah/python-mini-project
/ TrieNode
Class
TrieNode
Prefix_Trie/trie.py:1–8 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
class
TrieNode:
2
def
__init__(self):
3
""
"
4
children is a dict
from
char -> TrieNode
5
is_end represents whether the Node is the end of a word
6
""
"
7
self.children = {}
8
self.is_end = False
9
10
class
Trie:
11
def
__init__(self):
Callers
2
__init__
Method · 0.85
insert
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected