111k views
1 vote
Choose the correct term to complete the sentence

A ____ has function that allow you to appendleft and pop left.
O Deck
O amplified list
O deque
O list

1 Answer

3 votes

What do you mean by deque?

Image result for deque

Deque is a data structure that inherits the properties of both queues and stacks. Additionally, the implementation of this data structure requires constant time, i.e., time complexity = O(1). This means you can use deque to your advantage to implement both the queue and stack.

User Neutreno
by
8.0k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.