Pregunta de entrevista de Zimply (India)

How do you find loop in a linked list?

Respuesta de la entrevista

Anónimo

27 dic 2016

Use 2 pointers, one increments by 1 and other increments by 2. If they meet somewhere then there is a loop.