Sollicitatievraag bij TPS

How can you identify a loop in singly linked list?

Antwoord op sollicitatievraag

Anoniem

24 apr 2017

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