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
4.8k points