Question: What is the worst-case time complexity of inserting an element into a linked list?
Options:
Correct Answer: O(n)
Solution:
Inserting an element in a linked list requires traversing the list in the worst case, leading to O(n).