Data Structure: Stack

Summary

Data Structure NameStack
TypeLinear Data Structure
TaglineLIFO – Last In First Out
OperationsPush
Pop
Use cases
Implementations

Definition

Stack is a data structure that has only one end for performing operations. All operations can be performed at the head, be it adding(pushing) element or removing(popping) element.

Stack follows the LIFO – Last In First Out principle, so the item which is inserted at the last, is removed(popped) first.

Stack overview
Stack overview

Use Cases

Characteristics

Elements

A Stack data structure has the following info-

  • Head
  • Tail
  • Length

NOTES

Types

Functionality

Code Implementations

Use the following links to check Stack data structure implementation in specific programming languages.

Leave a Comment


The reCAPTCHA verification period has expired. Please reload the page.