MCPcopy 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

1class 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
10class Trie:
11 def __init__(self):

Callers 2

__init__Method · 0.85
insertMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected