EFI Interview Question

Find loop in a linked list.

Interview Answer

Anonymous

Apr 4, 2013

Use two pointers, fast and slow, fast should meet slow at some point should a loop exist. Increment fast by 2 and slow by 1.

3