employer cover photo
employer logo

Pergunta de entrevista da empresa VMware

given a single linked list containing million nodes how to find nth node from back.?

Respostas da entrevista

Sigiloso

12 de mai. de 2020

use two pointers one is fast and one is slow and the difference between the two pointers is nth value

1

Sigiloso

17 de jul. de 2015

The interviewer was satisfied by my answer, i explained him how to find nth node by using pointers.