Pregunta de entrevista de Marvell Technology

Algorithm to find loop in a linked list?

Respuesta de la entrevista

Anónimo

1 abr 2021

Two pointer approach one pointer increments by one position while other by two positions, if they meet then loop otherwise not.