Question d’entretien chez TPS

How can you identify a loop in singly linked list?

Réponse à la question d'entretien

Utilisateur anonyme

24 avr. 2017

Drop a Boolean(true) in every node if the next node's Boolean is already true than you have a loop