employer cover photo
employer logo

VMware Interview Question

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

Interview Answers

Anonymous

May 12, 2020

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

1

Anonymous

Jul 17, 2015

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