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