
Data Structures and Algorithms
Ladybug Podcast
00:00
The Importance of Stacks and Queues in JavaScript
Stacks and queues are not indigenous data types in a language that you actually have to build them out with other data structures. They're very, very similar to stacks with the exception of the the order that things are kind of like removed. So we can think of a queue as simply a queue or a line to buy a movie ticket. The person who has been waiting the longest is closer to actually being able to buy the ticket than the person who just joined the line.
Transcript
Play full episode