Advertisement

Stacks

  • Elshad Karimov
Chapter
  • 34 Downloads

Abstract

A stack is a last in first out (LIFO) data structure. The structure of a stack can be imagined as a pile of objects stacked vertically (Figure 4-1). When extracting these objects, the last added to the stack is the first one removed. Stacks are similar to arrays but with limited control.

Copyright information

© Elshad Karimov 2020

Authors and Affiliations

  • Elshad Karimov
    • 1
  1. 1.New YorkUSA

Personalised recommendations