Question: In a singly linked list, what is the time complexity to insert an element at the beginning?
Options:
Correct Answer: O(1)
Solution:
Inserting an element at the beginning of a singly linked list is done by adjusting the head pointer, which takes constant time, O(1).