About 130,000 results
Open links in new tab
  1. Stack Algorithm in Data Structures - Online Tutorials Library

    Stack operations are usually performed for initialization, usage and, de-initialization of the stack ADT. The most fundamental operations in the stack ADT include: push (), pop (), peek (), …

  2. Stack peek () Method in Java - GeeksforGeeks

    Mar 24, 2025 · The java.util.Stack.peek() method in Java is used to retrieve or fetch the first element of the Stack or the element present at the top of the Stack. The element retrieved …

  3. Peek() Operation in Stack - Naukri Code 360

    Mar 2, 2025 · Understand the Peek() operation in stack data structures. Learn how it helps you view the top element without changing the stack, crucial for various algorithms

  4. What is Stack Data Structure? A Complete Tutorial

    Mar 6, 2025 · The basic operations that can be performed on a stack include push, pop, and peek. There are two ways to implement a stack – Implementation of Stack using Array; …

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

  6. DSA Stacks - W3Schools

    Peek: Returns the top element on the stack. isEmpty: Checks if the stack is empty. Size: Finds the number of elements in the stack. Experiment with these basic operations in the stack …

  7. Algorithm and Flowchart for Stack using Arrays - ATechDaily

    Mar 2, 2021 · PEEK (): The PEEK () function returns the topmost value stored in stack, it's done by returning the element pointed by the top variable. Want to test your logical skills in …

  8. Java Stack peek() Method with Examples - Scaler Topics

    Oct 2, 2023 · The java.util.Stack.peek() method provides a quick and easy way to peek at the top element of a stack without deleting it, making it ideal for situations when you need to …

  9. Operations on Stack - DSA

    Dec 10, 2022 · Operations on stacks: The following operations are performed on stacks. PUSH (STACK. ITEM) – to push element ITEM onto stack STACK. PEEK (STACK) to access the top …

  10. Stack 101: Understanding the Basics of Stack Data Structure

    Apr 6, 2023 · # Peek. In a stack data structure, the peek operation returns the topmost element of the stack without removing it. This operation is also known as top or topmost.

  11. Some results have been removed
Refresh