This is code for floyds cycle. How do i take input of LL where loop exists??
Floyd's cycle Linked List
hello @nilotpal
u dont have to take input on ur own , the input part is already handled , all u have to write is cycle detection and cycl removal code
Its not printing the LL. whats wrong?
u need this boiler plate code for input and output->
https://hack.codingblocks.com/app/contests/2087/1307/problem
See this code. I am doing it on hackerblocks. Its showing compile error
bro u need to include other code as well that is givne in hackerblocks ide.
u cant compile code just by having 2 functions.
See now
dont run direclty submit
4/10 test case passed
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.