The deletion is not occurring

I have made sure the logic is correct but for some reason the delete function is not deleting the elements. Please help. My code: https://ide.codingblocks.com/s/654685

refer this -->

I’m still not able to figure out the issue. It is surely in the delete function but I am unable to spot it.

@mitrapranav0027_5d705c8b616e0add
there were 2 corrections in ur code.

  1. else if(del<=root->data) { in this remove the = sign.
  2. give a newline after every test case…

corrected code -->


It’s passing all test cases now…

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.