LINKED LIST CYCLE REMOVAL

sir my code is producing TLE for two test cases.
please help sir

Check optimized approach from here. Try with hashing based approach which is method 4 in above link

sir please tell me whats the problem in my code

If your code is giving try with other optimized approach as i said above.
If there are some other errors with your code, then save your code on ide.codingblocks.com and share its link