Not getting correct output

i think i have correctly coded deletion and build function but the output is still wrong, whats the error?

hi @paidaarpit1505_f9664148aad841e0, few things

  1. use if else properly in recursion
  2. here dont build your code with inorder coz ans in backend is derived with simple bst building method so your output wont match
  3. refer this

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.