Re:Trie in JavaScript: The data structure behind autocomplete
by TYMorningCoffee on Thursday November 04, 2021 @01:19AM
(#29103839)
Not exactly what you want but a second trie with the key on the starting letters and the value the complete word might work for you. Your ABD example would work but something like
ABrD would not.
[ Parent
| on HN ]
There are no comments on this comment yet.