Pergunta de entrevista da empresa Google

Check the LinkedList have cycle or not

Resposta da entrevista

Sigiloso

19 de set. de 2023

Its easy, take two variable Fast and Slow, in every itration make slow+1 and fast+2 and if slow==fast then cycle else NOT