@sid, ya in case of loop head2->next won't  ever be NULL, bt this function
has to check if is there a loop. so u need to take care of condition wen
ther is no loop in the list. so 4 that this condition is required.

On Wed, Aug 31, 2011 at 11:17 PM, Siddhartha Banerjee <
[email protected]> wrote:

> how can head2->next be null in a linked list witha loop???
> i mean it would just go around in circles right???
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to