Re:Simple Trie Implementation in C++11
by xorz57 on Sunday July 21, 2019 @05:20PM
(#20493736)
My apologies. I updated the post! Now it works just fine!
[ Parent
| on HN ]
There's still an issue if you insert something you've searched for first, e.g.:
trie<char16_t> trie;
trie.insert(u"a");
trie.search(u"ab");
trie.insert(u"ab");https://github.com/xorz57/xorz57.netlify.com/commit/48d1c580...
My bad! I fixed it!