Sollicitatievraag bij Akamai

Detect a loopbin link list

Antwoord op sollicitatievraag

Anoniem

17 jan 2017

Use two pointers travelling with different speed (one is twice as fast as other) If they both meet the loop exist otherwise their is no loop.