An open API service indexing awesome lists of open source software.

https://github.com/harisali-git/bst_iterativeinsert

This code is for the iterative insert in the Binary Search Tree
https://github.com/harisali-git/bst_iterativeinsert

Last synced: about 1 year ago
JSON representation

This code is for the iterative insert in the Binary Search Tree

Awesome Lists containing this project

README

          

# BST_IterativeInsert
Normally the insertion in a Binary Search Tree is done by recursion so these few lines of code show that how to achieve the same task by a loop instead of using a recursion. The code seems a bit complicated at first glance but there is just basic things like checks that are getting handeled in this code.