Akamai Interview Question

Detect a loopbin link list

Interview Answer

Anonymous

Jan 17, 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.