Computer Science Fundamentals/ Data Structures and AlgorithmsLESSON 17 OF 34Log inSubscribe
Stacks, Queues and Hash Tables lesson slide
LESSON 17 OF 34 · IN THE FULL COURSE

This one's part of the full course

Good to see you. This one's in the full course

8 lessons are free to watch right now, no account needed. If they click, grab the course and every lesson is yours to keep.

You've seen how I teach. The other 26 lessons are in the full course, and your progress comes with you.

Already bought it? Log in and it picks up right here.

Your progress comes with you the moment you buy.

Data Structures and Algorithms · LESSON 17

Stacks, Queues and Hash Tables

Discuss
THE COURSE, END TO ENDNow playingDoneAheadYou are hereFree to watchIn the full course
Foundations
Logic and Binary
Information Theory
Crypto
CS Theory
Data Structures and Algorithms
Software Design
Core Skills
ABOUT THIS LESSON

Stacks

Stacks and Queues are basically linked lists with abstractions built in that let you retrieve data in a particular way. A stack, for instance, lets you “stack” data on to it but will only let you pull data off of the top - just like a stack of plates. The methods that you associate with a stack are push and pop: you “push” something onto the stack and “pop” off the top of the stack. This is also known as “Last In, First Out” or LIFO.

Queues

A queue has the same kind of data access rule, but instead of popping off the top you can only pull from the bottom of the queue, also known as “dequeuing”. The two methods associated with a queue are enqueue and dequeue - just like waiting in line (or a queue) for a movie.

Hash Tables

If you’ve worked with JavaScript objects in the past, you’ve worked with hash tables. They have a specific data access pattern: you access each value with a particular key. These objects are associated with a particular time complexity - do you know what that would be?

34lessons across 8 sections
8free to watch right now
Foreverbuy it once, it's yours for life

34 lessons · 9.6 hours · all done

You finished Computer Science Fundamentals.

Every lesson, start to finish. That takes some doing, and you did it. Now go build something with it.

Cheers! Rob