About 1,350,000 results
Open links in new tab
  1. 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 …

  2. Implement Stack using Array - GeeksforGeeks

    Mar 21, 2025 · To implement a stack using an array, initialize an array and treat its end as the stack’s top. Implement push (add to end), pop (remove from end), and peek (check end) …

  3. Stack Data Structure - GeeksforGeeks

    Mar 27, 2025 · The Java Collection framework provides a Stack class, which implements a Stack data structure. The class is based on the basic principle of LIFO (last-in-first-out). Besides the …

  4. 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 …

  5. Stack In Data Structures | Operations, Uses & More (+Examples)

    In this article, we'll explore the concept of a stack, its operations (push, pop, peek, and isEmpty), its implementation using arrays and linked lists, and its real-world applications in areas like …

  6. Python Stack Data Structure: When and Why to Use it

    In Python, a stack can be implemented in several different ways. The three main methods are using the built-in list data structure, using the collections.deque, or using linked lists. Let’s …

  7. 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. …

  8. Stack in Data Structures: Implementations in Java, Python, & C++

    Apr 5, 2025 · A stack in data structures is a linear collection that follows the Last In, First Out (LIFO) principle, where the last element added is the first to be removed. This structure is …

  9. What is Stack Data Structure? A Complete Tutorial

    Mar 6, 2025 · The Java Collection framework provides a Stack class, which implements a Stack data structure. The class is based on the basic principle of LIFO (last-in-first-out). Besides the …

  10. Java Program to Implement Stack Data Structure

    Apr 26, 2024 · In this article, we implement a JavaScript program to make a stack using a queue data structure. It provides essential stack methods like push(), pop(), and peek(), isEmpty() …

  11. Some results have been removed
Refresh