Re:Algorithms and Data Structures: Trie (Prefix tree)
by kornish on Wednesday November 09, 2016 @09:52PM
(#12917302)
It could be. Here's a python implementation:
For time complexities, this requires O(n) preprocessing but can do O(1) lookups, since it's a hash structure.
[ Parent
| on HN ]
There are no comments on this comment yet.