Sollicitatievraag bij Marvell Technology

Algorithm to find loop in a linked list?

Antwoord op sollicitatievraag

Anoniem

1 apr 2021

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