Insert at middle

in this function if we want a node at position 2 then according to this we will take only 1 jump (p-1) but then the new node will get inserted at position 3

  0             1               2             3

1 jump means pointer will be at 1 and after 1 new node will get inserted

hello @supreme17

here p is indicating after how many nodes we want to insert.

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.