Pregunta de entrevista de NVIDIA

how to know if two linked list collide

Respuestas de entrevistas

Anónimo

9 mar 2021

check if the last node is the same

3

Anónimo

25 jul 2021

Measure length of both lists (l). Promote the longer list to the difference between the lists. Now the lists are the same length. Compare each node while promoting. If any 2 nodes equal - lists intersect.

1