Vidyalelo
Data Structure · Q43

Linked Lists in Data Structures

Programming · Data Structure · question 43

Q43

How do you efficiently find the kth to last element in a singly linked list?

A.
Using a single pointer to traverse the list
B.
Using two pointers (k steps apart)
Answer
C.
Using a stack to store elements
D.
Using a binary search

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board