What is the time complexity of deleting from the rear end of the dequeue implemented with a singly linked list?

Q & ACategory: Data StructureWhat is the time complexity of deleting from the rear end of the dequeue implemented with a singly linked list?
Admin Staff asked 4 years ago

What is the time complexity of deleting from the rear end of the dequeue implemented with a singly linked list?
a) O(nlogn)
b) O(logn)
c) O(n)
d) O(n2)

1 Answers
Admin Staff answered 4 years ago

c) O(n)