deque Question 2

Last Updated :
Discuss
Comments

Which of the following operations on a deque has O(n) time complexity?

insert()

push_front() 

pop_back()

erase()

Share your thoughts in the comments