Question d’entretien chez Marvell Technology

Algorithm to find loop in a linked list?

Réponse à la question d'entretien

Utilisateur anonyme

1 avr. 2021

Two pointer approach one pointer increments by one position while other by two positions, if they meet then loop otherwise not.