Possible Duplicate:
What is an efficient algorithm to find whether a singly linked list is circular/cyclic or not?
How to check if a Linked list is circular or not efficiently? It will be more helpful if your answers are based on C/C++ perspective. Thanks.