Software Engineering KB

Home

❯

01 Foundations

❯

00 Data Structures

❯

01 Concept

❯

Stacks

Stacks

Feb 10, 20261 min read

  • data-structures
  • linear
  • stacks

Stacks

← Back to Linear Structures

Last-In-First-Out (LIFO) collection. Elements are pushed onto and popped from the top. Can be implemented with arrays or linked lists.

Key Properties

  • LIFO
  • Call Stack
  • Expression Evaluation
  • Undo Mechanisms

Complexity

OperationTime Complexity
PushO(1)
PopO(1)
PeekO(1)

Related

  • Queues (contrast — FIFO)
  • Arrays or Linked Lists (implementation)

data-structures linear stacks


Graph View

  • Stacks
  • Key Properties
  • Complexity
  • Related

Backlinks

  • Linear Structures
  • Linked Lists
  • Queues
  • Call Stack
  • Expression Evaluation
  • LIFO
  • Undo Mechanisms

Created with Quartz v4.5.2 © 2026

  • GitHub