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 [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.
