Sail E0 Webinar
Question
What is the time complexity of the above iterative code used to find the smallest and largest element in a linked list?
Options:
A .  O(1)
B .  O(n)
C .  O(n2)
D .  O(n3)
Answer: Option B


The time complexity of the above iterative code used to find the largest and smallest element in a linked list is O(n).



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

More Questions on This Topic :


Latest Videos

Latest Test Papers