Delete nodes from Bst

I don’t know why the output is not print in your compiler, while in others compilers it gives the correct output.

please look into this:
https://ide.geeksforgeeks.org/fYox3DVGEK
in Gfg it wors fine.

Hello @kumar_07,

There is a logical mistake in your code.
You are not returning anything for the cases: key>root->data and keydata

I have corrected your code:


Refer to the comments.

Hope, this would help.
Give a like if you are satisfied.