Algorithms and Data Structures

Lesson 04 · 14 min

Stack and queue

Two simple structures behind undo, parsers and graph traversal.

14 minLesson 4 of 8Practice includedAsk AI on any point

A stack follows LIFO: last in, first out. Like a pile of plates. A queue follows FIFO: first in, first out. Like a line at the checkout.

Sign in to continue

The rest of this lesson opens after sign up

The first lesson of every course is open without an account. To read on, solve the practice and use Ask, create a free account or log in.