Skip to main content

Crate trie

Crate trie 

Source
Expand description

Trie (prefix tree) for storing and querying strings.

Supports three operations, each O(L) where L is the length of the input:

Children are stored in a HashMap<char, TrieNode> for O(1) descent.

Structsยง

Trie
Trie data structure.