MCPcopy Create free account
hub / github.com/ByteByteGoHq/coding-interview-patterns / TrieNode

Class TrieNode

python3/Tries/design_a_trie.py:1–4  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1class TrieNode:
2 def __init__(self):
3 self.children = {}
4 self.is_word = False
5
6
7class Trie:

Callers 2

__init__Method · 0.70
insertMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected