Discussion about this post

User's avatar
Anup Aglawe's avatar

Code for insert looks incorrect to me, root should update regardless of the condition.

Reply
Share
Alex Pliutau's avatar

Thanks! Here is a very simple Go implementation - https://gist.github.com/plutov/0a36aab241bb687505e80cdf3e555f30

Reply
Share
2 more comments...

Ready for more?