we should have started both fast and slow from beginning then why
we are pointing fast to next of head;
node *fast=head->next
We should have started both fast and slow from beginning then why
@guptanikhil898 in case of even number of nodes we want our mid to floor of n/2 thats why fast start from head -> next. acc to the mid you want you can start from there.
hope its clear if yes dont forget to hit like and mark resolved