Lab -6 (Binary Search Tree) Solution




Write a program which will delete a node (25) with one child (30) and replace the Binary Search Tree with the child (30). Please use the nodes from following diagram to generate the Binary Search Tree. So, the first part of your code will generate the BST on the left hand side. And the second part on the right side will be generated once you delete the node and replace it with child.

error: Content is protected !!