KnowledgeBoat Logo
|
LoginJOIN NOW

Computer Science

How is queue data type different from deque data type?

Python Queue

12 Likes

Answer

Queues only allow insertion in one end (rear end) and retrieval from the other end (front end). A deque, on the other hand, is a double-ended queue, which allows flexibility with insertion or deletion such that one of these operations is allowed at both ends rather than having a fixed end for the operations.

Answered By

8 Likes


Related Questions