While returning midpoint if it is even no of nodes then it is only returning one node . What if we need both nodes??
Linked List Midpoint
it is never the case when u are required to return both the nodes
the question will telll u which one to return
node* fast=head->next; // this is wrongline 35
node *fast = head;
is the correct thing