i am not able to understand the createCycleList() function that is used to create the linklist . i mean how to provide a linklist as input which contains cycle. please help .
Not able to understand how to provide the linklist as input
@Usha24
This is the template. You have to code bool floydCycleRemoval(Node *head)
I hope this solves your doubt.
Actually I have written the function
But I am not Able to figure out how does the createcyclelist() function works. I am facing difficulty in providing the input to the code
You dont have to give input to the code. You just have to code the function.