Yes indeed, another article out here on the web talking about our favorite data structure cousins. Are they cousins? Maybe they’re more like siblings? You can decide.

When I first learned about stacks and queues I found myself easily getting confused between them. It seemed like they were more alike than different. Yes, I know I know…stacks are like pancakes and queues are like lines at the theater. This much I grasped. However, when it came to solving algorithms I couldn’t determine which one of the two data structures to use and why. A part of me was secretly convinced…

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store