tags:

views:

53

answers:

1

how to find a loop in a doubly linked list??how to eliminate the loops?

+1  A: 

This is a common interview question. Here is a nice explanation of the optimal solution.

Asaph
i was looking something in particular to a doubly linked list
Jonathan
The same solution will work for a doubly linked list. Just ignore the fact that it's doubly linked.
Asaph