Wednesday 13 September 2017

Binary Search Tree Algorithms


Just developed a reasonably well-commented code for algorithms involving Binary Search Trees. You can find it on Github with the following link:





It includes basic algorithms like insert, search and delete. Also including slightly advanced algorithms like height-balancing the tree in O(n) and post-order, pre-order and in-order traversals. Since some interview questions include slightly funky questions like "bottom-top view of BST", I am planning to include few of those as well. As always, all code is documented and the time and space complexity are included wherever possible. Any doubts/comments/questions/suggestions, please feel free to reach out in the comment section.

No comments:

Post a Comment