Difference Queue and Deque

QueueDeque
Data elements can be either inserted or deleted at one endData elements can be inserted or deleted from both the ends
We can not reuse memory space once element is deleted from itWe can reuse memory space of deleted element for new element to be inserted

Leave a Comment

Your email address will not be published. Required fields are marked *

error: Content is protected !!
Scroll to Top