Question d’entretien chez EFI

Find loop in a linked list.

Réponse à la question d'entretien

Utilisateur anonyme

4 avr. 2013

Use two pointers, fast and slow, fast should meet slow at some point should a loop exist. Increment fast by 2 and slow by 1.

3