Introduction
Stack is an abstract data type (ADT) that follows Last in First Out (LIFO). This means that the element which is added last in the stack will be accessed first. Insertion of an element in the stack is termed as PUSH operation, removing of an element in the stack is termed as POP operation. There are more operations in Stack like PEEK or TOP which will give the top element of the stack and the isEmpty() method which will return true if the stack is empty and false otherwise. All these operations in the stack are performed in O(1) time.
Stack in C++ (STL)
By Kabir Singh
● Published At Oct 2021
Stack can be determined as a container that follows LIFO order. Through this article, we will see how to implement stack in C++ using STL. ... Keep reading ..
Stack Class in Java Collection Framework
By vaishnavi pandey
● Published At Oct 2021
Stack in Java is an important data structure. Java provides a built-in Stack class via Java Collection Framework. We’ll see to it in detail.... Keep reading ..
Stack in Python (LIFO Queue)
By Neelakshi Lahiri
● Published At Oct 2021
Stack is an important data structure that is used in all programming languages. This article describes a stack in Python, in particular. ... Keep reading ..
Python Stack Using Doubly Linked List
By dhruv sharma
● Published At Nov 2021
In this blog, we will see how to implement the stack data structure using a doubly-linked list in Python.... Keep reading ..
Difference Between Stack and Tree
By Firdausia Fatima
● Published At Jan 2022
In this blog, we'll go through the definitions of stack and tree, as well as the differences between the two.... Keep reading ..
Difference between Array, Queue and Stack
By Malay Gain
● Published At Feb 2022
In this article, we will discuss the difference between Array, Queue, and Stack. ... Keep reading ..
Implement stack using a singly linked list
By Sandeep kamila
● Published At Nov 2021
This article covers the implementation of a stack using a singly linked list with examples and its C++ code.... Keep reading ..
Implement stack using a doubly-linked list
By Sandeep kamila
● Published At Nov 2021
This article covers the implementation of a stack using a doubly-linked list with examples and its C++ code.... Keep reading ..