Pergunta de entrevista da empresa WorldQuant

How do you find cycles in a linked list?

Resposta da entrevista

Sigiloso

10 de nov. de 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