Sunday, October 31, 2010

Find circular linked list

Start with two pointers. Increase one ptr by 1 and second ptr by 2. If they meet then list is circular.

No comments:

Post a Comment