Pregunta de entrevista de EFI

Find loop in a linked list.

Respuesta de la entrevista

Anónimo

4 abr 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