Delete node in BST


Can you please tell why the code is not giving right output

@Ajitverma1503
Hello Ajit,
the problem is with your build tree function .
the method u are using to construct tree is valid only when inorder array of tree is given.
for this problem iterate array and insert data into bst using bst insertion method.