Delete nodes from bst


my code is giving segmentation fault

hi @pooja_narula, your code is correct overall. there is a silly mistake in your code
at line 94 it should be
root=delinBST(root,d);
instead of
node *root=delinBST(root,d);

In case of any doubt feel free to ask :slight_smile:
mark your doubt as resolved if you got the answer

it’s working fine now, thanks