I am getting the correct answer but not passing the test cases what is wrong in the code?
Delete From BST
hello @aryamaan1011
dont build a balanced bst(the method u are using to create bst will create a balanced bst) .
build a normal bst ( ie perform insertion for each elements of array in the bst )
and then apply ur deletion logic on the resultant tree .
this is how u should build ur bst->

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.