MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / __init__

Method __init__

data_structures/trie/trie.py:10–12  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

8
9class TrieNode:
10 def __init__(self) -> None:
11 self.nodes: dict[str, TrieNode] = {} # Mapping from char to TrieNode
12 self.is_leaf = False
13
14 def insert_many(self, words: list[str]) -> None:
15 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected