A stack is an abstract type with operations push, pop, top and empty, where pop removes the element pushed last (last in, first out). A queue has put and take, where take removes the element put first (first in, first out). A deque, or double-ended queue, allows adding and removing at both ends.
Computer Science · Glossary
What is Stack, queue, deque?
Also known as: stack (abstract type) · queue · deque