MCPcopy Index your code
hub / github.com/TheAlgorithms/Python / trie.py

File trie.py

data_structures/trie/trie.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1"""
2A Trie/Prefix Tree is a kind of search tree used to provide quick lookup
3of words/patterns in a set of words. A basic Trie however has O(n^2) space complexity
4making it impractical in practice. It however provides O(max(search_string, length of

Callers

nothing calls this directly

Calls 1

mainFunction · 0.70

Tested by

no test coverage detected