Pregunta de entrevista de WorldQuant

How do you find cycles in a linked list?

Respuesta de la entrevista

Anónimo

10 nov 2018

make the head of linked list pass to you then loop to the next until it has nothing to travel or meet the head. if meet the head, then the linked list is looped