Pergunta de entrevista da empresa Guidewire

Find the kth to last node in a linked list.

Resposta da entrevista

Sigiloso

5 de abr. de 2019

Iterate the first pointer k times through the list and stop. Start a second pointer from the head, continue until the first pointer drops off the end of the list.