...

/

Stack and Queue

Stack and Queue

Learn about the stack and queue data structures in Python.

We'll cover the following...

A data structure refers to an arrangement of data in memory. Popular data structures include stacks, queues, trees, graphs, and maps.

Stack data structure

A stack is a Last-in, First-out (LIFO) list, i.e., the last element that is added to the list is the first element that is removed from it.

Access this course and 1400+ top-rated courses and projects.