what is wrong with my detect cycle function it is giving false as output even when the cycle is present in the linked list.
my code link:
https://ide.codingblocks.com/#/s/25493
Linked lists doubts
You have applied wrong conditions. There may be a case in detect cycle, where NULL is not present at all. Your code will not work for such list.
eg. 3->5->2->6->5
Please try again after reading the question again carefully.
how to input multiple linked lists with different values of n.
my code is not working fine .i don’t know why.pls help
https://ide.codingblocks.com/#/s/26083