Midpoint linked list runner

i didn’t understand that in case of odd no. of nodes like below
1->2->3->4->5
when slow pointer is at 1 and fast is at 2 and after one jump slow is at 2 and with 2 jump fast is at 4 ,here loops break so mid is 2 but in output it is 3,please make me understand…

hi @prince43055kumar

this is incorrect
initially both are at same point(i.e at head)

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.