How to efficiently store and represent strings using a trie data structure.
Code for insert looks incorrect to me, root should update regardless of the condition.
You're right; the indentation was incorrect. Thanks, Anup.
Thanks! Here is a very simple Go implementation - https://gist.github.com/plutov/0a36aab241bb687505e80cdf3e555f30
Interesting, thanks for sharing!
Code for insert looks incorrect to me, root should update regardless of the condition.
You're right; the indentation was incorrect. Thanks, Anup.
Thanks! Here is a very simple Go implementation - https://gist.github.com/plutov/0a36aab241bb687505e80cdf3e555f30
Interesting, thanks for sharing!