Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

What would be the asymptotic time complexity to find an element in the linked list?

a) O(1)
b) O(n)
c) O(n2)
d) O(n4)

Answer: b
Explanation: If the required element is in the last position, we need to traverse the entire linked list. This will take O (n) time to search the element.

Join The Discussion