deque Question 5

Last Updated :
Discuss
Comments

What is the time complexity of push_front() operation in a C++ deque?

O(1)

O(n log n)

O(n)

O(log n)

Share your thoughts in the comments