Skip to content
Related Articles
Open in App
Not now

Related Articles

ISRO | ISRO CS 2008 | Question 68

Improve Article
Save Article
  • Last Updated : 13 Jun, 2018
Improve Article
Save Article

The time required to search an element in a linked list of length n is
(A) O (log n)
(B) O (n)
(C) O (1)
(D) O(n2)


Answer: (B)

Explanation: In the worst case, the element to be searched has to be compared with all elements of linked list. It will take O(n) time to search the element.

So, option (B) is correct.

Quiz of this Question

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!