I want to ask that wether I can replace the code of line number 135 with delete replace directly instead of root->right=delteinbst(root->right, replace->data);
In the video the line number 135
hi @jsn853
if you want to delete replace here
you have to check two case whether it is leaf node
if yes you can directly delete
but if its(replace’s) right exists then you have to do some extra work
best is to leave this headache to recursion
i hope this help
if you have more doubts regarding this feel free to ask
if your doubt is resolved mark it as resolved from your doubt section inside your course
ok got it thanks for the quick reply