**********FLOYD'S CYCLE

wrong output

code does not work well when there is no cycle
for i/p

-1
ur code gives segmentation fault
req o/p
No cycle
Linked List -

what should be done then


added comments
additional check had to be inserted if the loop was not present