Question: What is the time complexity of deleting the last element from a singly linked list?
Options:
Correct Answer: O(n)
Solution:
To delete the last element from a singly linked list, you must traverse the list to find the second-to-last element, resulting in O(n) time complexity.