This question is related to: How to detect a loop in a linked list?
I have understood the solution but I didn't understand two statements I read in some book-
If L is the length of the loop, n is the number of nodes,the slow and fast pointers will meet at n x L length - Is this correct? If not, when would they meet? Can someone please explain it in simple terms.
To find the head of the loop, after the slow pointer and fast pointer meet, we move the slow pointer to the head and move both the pointers by 1 node until they intersect at the head of the loop - How does moving the slow pointer to the head and then moving both pointers by 1 node make them meet at the starting of the loop?