Q. How is queue data type different from deque data type?
Answer :-
Queue = Queues are the data structures where data is entered into the Queue at one end-the rear-end and deleted from the other end-the front, i.e., these follow first in, first out (FIFO) principle.
Deque = Deque are the data structures where data is entered into the deques at both front-end and rear-end, and deleted from both front-end and rear-end.
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )