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
2010-04-21 05:25:57
i was looking something in particular to a doubly linked list
Jonathan
2010-04-21 06:01:09
The same solution will work for a doubly linked list. Just ignore the fact that it's doubly linked.
Asaph
2010-04-21 06:02:46