A Short Guide to Stacks and Queues

Photo by Chad Montano on Unsplash

Stacks and queues are often taught in the same breath. They are a relatively simple data structure each of which only needs two methods to be functional by definition. We need a way to put something in and then take something out.

A few real-world examples of these data structures: