annotated_trie

Creator: coderz1093

Last updated:

0 purchases

annotated_trie Image
annotated_trie Images

Languages

Categories

Add to Cart

Description:

annotated trie

A trie implementation where you can store arbitrary values in the leaf nodes
Usage #
A simple usage example:
void main() {
final trie = AnnotatedTrie<int>(caseInsensitive: false)
..addWord('Some', 1)
..addWord('body', 2)
..addWord('OnCe', 3)
..addWord('some', 4)
..addWord('something', 5)
..addWord('Something', 6);

print('Finding prefix for "Some": ${trie.findPrefix('Some')}');
print('Finding prefix for "somet": ${trie.findPrefix('somet')}');
}
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.