About 2,090,000 results
Open links in new tab
  1. What is Stack Data Structure? A Complete Tutorial

    Mar 6, 2025 · Stack is a linear data structure that follows LIFO (Last In First Out) Principle, the last element inserted is the first to be popped out. It means both insertion and deletion operations happen at one end only. LIFO (Last In First Out) Principle. Here are some real world examples of LIFO. Consider a stack of plates.

  2. Stack Algorithm in Data Structures - Online Tutorials Library

    A stack is a linear data structure where elements are stored in the LIFO (Last In First Out) principle where the last element inserted would be the first element to be deleted. A stack is an Abstract Data Type (ADT), that is popularly used in most programming languages.

  3. Algorithm and Flowchart for Stack using Arrays - ATechDaily

    Mar 2, 2021 · Want to test your logical skills in Algorithms? A Stack is one of the most common Data Structure. We can implement a Stack using an Array or Linked list. Stack has only one End referred to as TOP. So the element can only be inserted and removed from TOP only.

  4. Stack Data Structure - GeeksforGeeks

    Mar 27, 2025 · What is Stack Data Structure? A Complete Tutorial. A Stack is a linear data structure that follows a particular order in which the operations are performed. The order may be LIFO (Last In First Out) or FILO (First In Last Out).

  5. Push and Pop Operation in Stack: Algorithm and Program

    Apr 5, 2021 · A stack is a Linear Abstract Data Type (ADT) that follows the LIFO (Last in first out) property. There are two operation which can be performed on stack. 1). PUSH. 2). POP. 1). PUSH operation of Stack. PUSH operation of the stack is used to add an item to a stack at the top. We can perform Push operation only at the top of the stack.

  6. Stack Data Structure and Implementation in Python, Java and …

    In this tutorial, you will understand the working of Stack and it's implementations in Python, Java, C, and C++.

  7. Implement Stack using Array - GeeksforGeeks

    Mar 21, 2025 · Implement push (add to end), pop (remove from end), and peek (check end) operations, handling cases for an empty or full stack. Step-by-step approach: Initialize an array to represent the stack. Use the end of the array to represent the top of the stack.

  8. Algorithm and Flowchart for Implementing a Stack using …

    Mar 10, 2021 · Want to test your logical skills in Algorithms? Stack is a linear data structure which follows LIFO (Last In First Out) or FILO (First In Last Out) order to perform its functions. It can be implemented either by using arrays or linked lists.

  9. Stack Tutorial, Algorithm, Programs - Data Structure Tutorial …

    In stack related algorithms TOP initially point 0, index of elements in stack is start from 1, and index of last element is MAX. Algorithm to initialize a stack using array. TOP points to the top-most element of stack. 1) TOP: = 0; 2) Exit. Push operation is used to insert an element into stack. Algorithm to push an item into stack.

  10. Stack Data Structure Operations and Implementation

    It is possible to implement a stack data structure using an array. To do this, we can define a class called StackArray that provides access to a set of methods that implement stack operations. Users can call these methods from outside the class using an object of the StackArray class.

Refresh