Stack

Motivation

  • Sequential
  • Limited Access
  • L.I.F.O
  • Linear

Definition

A queue is a data structure where elements are inserted into and removed from a container using the first-in-first-out principle.

Attributes

  • size
  • top
  • is_empty

Operations

  • push(e)
  • pop