About 578 results
Open links in new tab
  1. Stack Data Structure - GeeksforGeeks

    Mar 27, 2025 · A stack is a linear data structure that stores items in a Last-In/First-Out (LIFO) or First-In/Last-Out (FILO) manner. In stack, a new element is added at one end and an element is removed from that end only.

  2. What is Stack Data Structure? A Complete Tutorial

    Mar 6, 2025 · A stack is a data structure that follows the last-in, first-out(LIFO) principle. We can add or remove element only from one end called top. Scala has both mutable and immutable versions of a stack. Syntax : import scala.collection.mutable.Stack var s = Stack[type]() // OR var s = Stack(val1, val2, v

  3. Stack Algorithm in Data Structures - Online Tutorials Library

    What is a Stack? 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.

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

    A stack is a useful data structure in programming. It is just like a pile of plates kept on top of each other. In this tutorial, you will understand the working of Stack and it's implementations in Python, Java, C, and C++.

  5. Basic Operations in Stack Data Structure with Implementations

    Nov 3, 2024 · In order to make manipulations in a stack, there are certain operations provided to us for Stack, which include: top () Returns the top element of the stack. isEmpty () returns true if the stack is empty else false. size () returns the size of the stack. In this post, we will see how to perform these operations on Stack.

  6. Intro to StacksData Structure and Algorithm Tutorial

    Mar 19, 2024 · Stacks are dynamic data structures that follow the Last In, First Out (LIFO) principle, where the last element added to the stack is the first one to be removed. This course, enriched with diagrams and code examples, will provide you with a solid understanding of stacks and prepare you to ace those crucial interview questions.

  7. Stack in Data Structure: What is Stack and Its Applications

    Apr 12, 2025 · Explore stack in data structure and understand what is stack. Learn key applications like memory management, algorithm optimization, and expression parsing.

  8. Stack Data Structure: Examples, Uses, Implementation, More

    Feb 27, 2025 · In computer science, the stack data structure helps manage data in various applications, from reversing strings to navigating browser history. Here, we'll learn everything about stack in data structure with example, how it works, …

  9. Stack Data Structure Operations and Implementation

    What is stack data structure? A stack is considered to be a linear data structure because it is based on the principle of Last In First Out (LIFO). In a stack, elements are added and removed from the same end, called the top of the stack. The last element added to the stack is the first one to be removed, creating a linear order of elements.

  10. Stack | Data Structures and Algorithms Manual - GitHub Pages

    Stacks are really useful data structures. Apart from modelling real-world stacks like plates, you see them crop up in many places, including: Programming language stack-based virtual machines, which are used to execute bytecode. Program call stacks, which track the operations that are currently being executed as a computer program runs.

  11. Some results have been removed
Refresh