some test cases coming wrong
the code is here https://ide.codingblocks.com/s/173661
please help me with it
Delete node from bst
@diwakargour121,
Your findorder code was incorrect. There were some errors in recursion. https://ide.codingblocks.com/s/174715 Here is the corrected code. Also you need add:
deletenode(nn.data, nn.right, nn, false);
After you update the value of nn.data using findorder. If you have any further queries, feel free to reach out to me else please mark this doubt as resolved.
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.