Delete node from BST- wrong answer

https://hack.codingblocks.com/app/practice/2/1067/problem

I can’t see any submission of code for this problem, share your code using ide.codingblocks.com so that i can debug your code.

you aren’t taking input t in your while loop, also you are building BST by wrong method.
Take this code for reference, and apply it in your code it will pass test cases.

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.