When i i tried to delete the 2 nd node 3rd node is deleted from the list and when i tried to delete the 3 rd node 4 node is deleted from the list please check my code once

hello @anshulgurawalia

is ur position is following 0 based indexing or 1 based indexing?

my position is following 1 based index

check now->

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.