Is there a way to remove the TLE?
hello @vageesha
bool floydCycleRemoval(Node *head)
{
Node*temp=head;
while(temp!=NULL)
{
if(temp->next==head)
{
temp->next=NULL;
return true;
} /* Code here */
temp=temp->next;
}
return false;
}
```
here u are assuming that tail is attached to the head (in case of cycle)
which is a wrong assumption.
this type of cases can also occur->

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.