About 2,830,000 results
Open links in new tab
  1. Algorithm and Flowchart for Stack using Arrays - ATechDaily

    Mar 2, 2021 · In the above algorithm, PUSH (): First, we check if the stack is full, if the top pointing is equal to (MAX-1), it means that stack is full and no more elements can be inserted we print overflow. Otherwise, we increment the top variable and store the value to …

  2. Stack Algorithm in Data Structures - Online Tutorials Library

    The isFull() operation checks whether the stack is full. This operation is used to check the status of the stack with the help of top pointer. Algorithm 1. START 2. If the size of the stack is equal to the top position of the stack, the stack is full. Return 1. 3. Otherwise, return 0. 4. END Example

  3. Algorithm and Flowchart for Implementing a Stack using …

    Mar 10, 2021 · Basic operations are performed in the stack are: Push: It adds an item in the stack. If the stack is full, then the stack is said to be in Overflow condition. Pop: It deletes an item from the stack. The items are popped out in the reverse order in which they were pushed in.

  4. What is Stack Data Structure? A Complete Tutorial

    Mar 6, 2025 · isFull Operation in Stack Data Structure: Returns true if the stack is full, else false. Algorithm for isFull Operation: Check for the value of top in stack. If (top == capacity-1), then the stack is full so return true. Otherwise, the stack is not full so return false. Implementation of Stack

  5. Basic Operations in Stack Data Structure with Implementations

    Nov 3, 2024 · Push operation adds an item to the stack. If the stack is full, then it is said to be an Overflow condition. Below is a sample program to show Push operation in Stack. Pop operation is used to remove an item from the stack. The items are popped in …

  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 to represent the stack. Use the end of the array to represent the top of the stack.

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

    Apr 5, 2025 · A stack is said to be full if it has reached its maximum capacity and there is no more space to add new elements to the stack. Algorithm for isFull() operation on the stack begin if stack length is equal to the maximum stack size return true endif else return false end else end procedure isEmpty() The isEmpty() operation is used to check if the ...

  8. Stack in Data Structure - TechVidvan

    IsFull( ) and IsEMpty( ) Operations in Stack IsFull( ) returns TRUE if the stack is full, else it returns FALSE. IsEmpty( ) is the opposite of IsFull( ) operation.

  9. Flow chart to implement stack operations by using the pointers.

    In this program we have to implement the stack operation by using the pointers. Here they stack operation are push and pop. Push operation is used to insert the elements into a stack and pop operation is used to remove the elements in to a stack. 1) Define Stack ? 2) Define data structure ? 3) What are the various operation performed on the stack ?

  10. Step 1 − Check if stack is full. Step 2 − If stack is full, produce error and exit. Step 3 − If stack is not full, increment top to point next empty space. Step 4 − Add data element to the stack location, where top is pointing. Step 5 − return success.