Programming Question

Question: Given a circular linked list, implement an algorithm that returns the node at the beginning of the loop. Definition: Circular linked list: A (corrupt) linked list in which a node's next pointer points to an earlier node so as to make a loop in the linked list. In: A -> B -> C -> D -> D -> E -> C Out: C

From: Cracking the Coding Interview [McDowell]

Subject: Linked Lists

Load Another Question


Select a Subject