Question: Which of the following operations has a time complexity of O(n) in a singly linked list?
Options:
Correct Answer: Accessing an element by index
Solution:
Accessing an element by index in a singly linked list requires traversing the list, which takes O(n) time.