FireStorm5103 FireStorm5103
  • 03-07-2021
  • Computers and Technology
contestada

What variable(s) is/are used in stack to keep track the position where a new item to be inserted or an item to be deleted from the stack

Respuesta :

tallinn tallinn
  • 05-07-2021

Answer:

Hence the answer is top and peek.

Explanation:

In a stack, we insert and delete an item from the top of the stack. So we use variables top, peek to stay track of the position.

The insertion operation is understood as push and deletion operation is understood as entering stack.

Hence the answer is top and peek.

Ver imagen tallinn
Answer Link

Otras preguntas

What is the equation of the following graph?
If a=3 cm, c=15 cm, find b in the following right triangle
This image shows the tops of several multicolored straws. In what ways does this image show unity and variety? Select three options. 1. unity in shape 2. unity
How should this sentence be changed ?My aunt Debra owns three dogs she wants to get another one
What condition may a patient have that requires the use of assistive eating devices? Check all that apply A. arthritis B. broken bones C. decreased motor functi
Write the nuclear equation to describe the alpha decay of 243 95 Am
Evaluate 5|x^3 - 2| + 7 when x = -2
Estimate V130 to the nearest integer.
How is most of the oxygen on Earth produced?
what is a possible explanation for a set of facts that can be tested by further investigation called