How to implement a stack using queuqe
implementation of stack using queuqe
Collapse
X
-
What do you mean by queue?
As abstract software engineering terms, a stack is a last-in-first-out (LIFO) structure, while a queue is a first-in-first-out (FIFO) structure. These are fundamentally incompatible. However, actual implementations of stacks and/or queues sometimes sacrifice conceptual purity for flexibility that might be used to breach the incompatibility .Comment
Comment