ternary-search-trie
Advanced tools
Changelog
2.0.0
Trie.del(key)
to have the correct behavior when deleting nodes.Trie.keys()
to return the list of keys that have been added to the Trie
, not the list of keys for each individual Node
.Trie.contains(key)
to allow for checking if a key exists in the Trie
.Trie.keysWithPrefix(prefix)
to allow for obtaining the list of keys within the Trie
that start with the specified prefix.Trie.traverse
to Trie.dfs
to better indicate the algorithm used for traversing the Trie
.Trie.searchByPrefix
to Trie.searchWithPrefix
.Trie.toString()
to use util.inspect()
.