Skip to content
MathsGenie logo
Open app

Course home

x

What a stack is

What a stack is

Array-based stack with items A, B, C, a topPointer arrow, and examples of push, pop, peek, empty and full conditions

A stack is a data structure where items are added and removed from the same end, called the top. It follows last in, first out, or LIFO, so the most recently added item is the first one removed.

Stacks Lesson

  1. AS Level
  2. /Computer Science
  3. /Stacks

Step-by-step lessons covering AQA AS Level Computer Science Stacks for AS Level Computer Science. Each lesson works through exam-style questions.

Lessons