dsjslib
dsjslib copied to clipboard
TernarySearchTrie().delete has bugs.
You forgot it is not a binary-search-trie, the leftmost child of the right trie, suc
, may have two children (suc.e
and suc.g
).
https://github.com/monmohan/dsjslib/blob/master/lib/TernarySearchTrie.js#L89-L100