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

    Mar 6, 2025 · Top or Peek Operation on Stack. Returns the top element of the stack. Algorithm for Top Operation: Before returning the top element from the stack, we check if the stack is …

  2. 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 (), …

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

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

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

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

  7. Stack Operations in Data Structure - Tpoint Tech - Java

    Feb 7, 2025 · Many algorithms, such as expression evaluation, backtracking, and graph traversal, heavily rely on the efficient implementation of stacks. This article aims to provide a …

  8. pop()pop() − Removing (accessing) an element from the stack. − Removing (accessing) an element from the stack. When data is PUSHed onto stack.When data is PUSHed onto stack. …

  9. peek − get the top data element of the stack, without removing it. isFull − check if stack is full. isEmpty − check if stack is empty. At all times, we maintain a pointer to the last PUSHed data …

  10. Stack Data Structure, Push, Pop and Peek Operations ... - Blogger

    Peek:- To access/print top element of stack is called peek operation. This work is performed from top of the stack. if top=-1 it means stack is empty then peek operation cant be performed.

  11. Some results have been removed
Refresh