MCPcopy Index your code
hub / github.com/TheAlgorithms/Python / main

Function main

data_structures/trie/radix_tree.py:215–225  ·  view source on GitHub ↗

>>> pytests()

()

Source from the content-addressed store, hash-verified

213
214
215def main() -> None:
216 """
217 >>> pytests()
218 """
219 root = RadixNode()
220 words = "banana bananas bandanas bandana band apple all beast".split()
221 root.insert_many(words)
222
223 print("Words:", words)
224 print("Tree:")
225 root.print_tree()
226
227
228if __name__ == "__main__":

Callers 1

radix_tree.pyFile · 0.70

Calls 4

insert_manyMethod · 0.95
print_treeMethod · 0.95
RadixNodeClass · 0.85
splitMethod · 0.80

Tested by

no test coverage detected