its simple

keep two pointers one behind the other say p,q  and delete q everytime and
den reset pointer.do this until p->next != null and p->next->next != null
hope u got the idea

On Tue, Aug 23, 2011 at 11:05 PM, aayush jain <[email protected]> wrote:

> how can we find the position of loop in linkedlist...
>
> code...
>
> --
> 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