Cycle detection and removal in linked list

how to give input and my code is not passing all the test cases

Modified code

you have to add some corner case conditions
like

// if list is empty or only contain single element
if( head == NULL || head->next == NULL){
        return false;
    }

// when complete list is in loop 
// means last element of list points to first element
if(slow->next == head){
            fast->next = NULL;
            return true;
        } 

you can see all changes in modified Code

Now this code passing all testcases

what does & gt means

???
what you want to ask?

what does this means (head->next == NULL) is it means head->next==NULL

sorry i got the point

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.

plz give your valuable feedback (rate your experience)

it’s important