In the deque implementation, using singly linked list, what would be the time complexity of deleting an element from the rear end?
Show answerHide answer
Correct answer: (C) O(N)
Explanation
In a singly linked list the node before the tail must be found by traversing the whole list, so deleting from the rear takes O(N).