Thanks for this helpful library, useful when thinking of how to make word games :)
I'm interested in picking a random word at a prefix. I know that it's possible to do by first trie.getPrefix(prefix) and then pick randomly from that array, but it seems inefficient given that it doesn't take advantage of the underlying trie structure.
Hi!
Thanks for this helpful library, useful when thinking of how to make word games :)
I'm interested in picking a random word at a prefix. I know that it's possible to do by first
trie.getPrefix(prefix)
and then pick randomly from that array, but it seems inefficient given that it doesn't take advantage of the underlying trie structure.