How to delete from middle

can you please tell me how to delete from middle

@adarshsingh2k ek prev pointer lo ek aur jis node ko delete karna ho usse ek peeche rakho . ek temp pointer lo vo prev ka next hoga . prev ke next ko temp ka next kardo aur temp ko delete kardo

maine try kiya par segmentation fault aarha hai

@adarshsingh2k refer this

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.