Question: What is the time complexity of accessing an element in a linked list by index?
Options:
Correct Answer: O(n)
Solution:
Accessing an element in a linked list by index is O(n) because it requires traversing the list from the head to the desired index.