Skip to content

gilleti/Trie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Trie

This is a Python 3 implementation of a Trie data structure with no external dependencies.

Create trie

Create trie like this:

trie = Trie.Trie()

Insertion

Insert words into trie like this:

trie.insert(”word”)

Search

Search the trie for an exact match like this:

trie.search(”word”)

Search the tree for a prefix like this:

trie.startswith(”prefix”)

About

Trie data structure

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages