Question: What is the time complexity of deleting an element from a singly linked list when the pointer to the node is given?
Options:
Correct Answer: O(1)
Solution:
If you have a pointer to the node to be deleted, the deletion can be done in O(1) time.