Nodeslow =head;
Nodefast = head;
while( head!= NULL&&head->next != NULL){
fast = fast->next->next;
slow = slow->next;
if( fast == slow){
slow = head;
if(slow == fast) {
while(fast->next != slow) {
fast = fast->next;
}
}
else{
while( slow->next != fast->next){
slow = slow ->next;
fast = fast->next;
}
}
fast->next = NULL;
return true;
}
}
return false;
}