*http://ostermiller.org/find_loop_singly_linked_list.html *refer for the solution to loop detection*
* On Wed, Aug 24, 2011 at 1:04 PM, binayakranjan das <binayakran...@gmail.com>wrote: > > hey guys.... > i donno whther it will work or not..bt hw about taking the address of > header and store in a variable .traverse through the linklist and check > whether the pointer is pointing to a address which is less than the > variable.when u r finding such a situation it will detect a loop. > > assumption:addresses of the nodes though not contiguous bt still in > ascending mode. > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- *Shashi Kant * ***"Think positive and find fuel in failure"* *+919002943948 * *R&D engineer , Tejas Networks Ltd Banglore. * -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.