Google News
logo
Data Structures - Quiz(MCQ)
In the worst case, the number of comparisons needed to search a singly linked list of length n for a given element is_____
A)
n
B)
n/2
C)
log 2 n
D)
log 2 n – 1

Correct Answer :   n


Explanation : In the worst case, the element to be searched has to be compared with all elements of linked list.

Advertisement