The Wayback Machine - https://web.archive.org/web/20260112230150/https://www.geeksforgeeks.org/questions/in-the-worst-case-the-number-of-comparisons-needed/

Data Structures | Linked List | Question 9

Last Updated :
Discuss
Comments

In the worst case, the number of comparisons needed to search a singly linked list of length n for a given element is

log(2*n)

n/2

log(2*n) -1

n

Share your thoughts in the comments