notes temp ->lchildy->lchild ->lchildwhile(temp->rchild !nulltemp temp->rchildtemp->rchild= ->rchildx->lchild=nullx->rchild=nullelse temp ->rchildy->rchild ->rchildwhile(temp->lchild !nulltemp temp->lchildtemp->lchild= ->lchildx->lchild=nullx->rchild=nullfree( )return( )/this code is for deleting node with on child*if( ->lchild =null & ->rchild !=nullif( ->lchild =xy->lchild ->rchildelse ->rchild ->rchildx->rchildnullfree( )return( )ifx->lchild !null & ->rchild =nullif( ->lchild =xy->lchild ->lchild else ->rchild ->lchildx->lchild nullfree( ) lovely professional university