reading-notes

Stacks and Queues

Notes

Stack:

Queue:

Lesson

Stack Analogy

To help me understand a stack I think of playing a game with a deck of cards. The deck of represents the stack and you can only draw a card (pop) or add a new card (push) on top of the deck. You can also look at the top card of the deck (peek).

Queue Analogy

A real world concept thats help me understand what a queue is in when programming is almost exactly the some a thing, a queue, or a line rather. Specifically, a line of people but the only thing each person (node) knows is who is next in line.

Things I want to know more about

References