Question d’entretien chez Zimply (India)

How do you find loop in a linked list?

Réponse à la question d'entretien

Utilisateur anonyme

27 déc. 2016

Use 2 pointers, one increments by 1 and other increments by 2. If they meet somewhere then there is a loop.