-
In the worst case, the number of comparisons needed to search a singly linked list of length n for a given element is
-
- log n
-
n 2
- log 2 (n - 1)
- n
- log n
Correct Option: D
Worst case of searching occurs when the element to be searched is at the end of the list so no. of comparisons required to search complete list would be n. Hence (d) is correct option.