employer cover photo
employer logo

Pergunta de entrevista da empresa Ixia

how to see if a linked list has cycles

Resposta da entrevista

Sigiloso

3 de dez. de 2014

start with two pointers with, first with speed 1 and second with speed 2 and they'll meet if the linked list has cycle