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

Plz help correctly explain please being graded!!!
Congruent angles must satisfy which of the following conditions? A. They have the same angle measure. B. The sum of their measures is 90. C. They shar
Earth's mass is approximately 81 times the mass of the moon. if earth exerts a gravitational force of magnitude f on the moon, the magnitude of the gravitationa
What advantages are given to animals and plants by asexual reproduction?
Which statement correctly describes the energy of the particles of the sample during interval BC
Sarah is cutting ribbons for a pep rally. the length of each Ribbon needs to be 3.68 inches. if she needs 1,000,what is the length of the ribbons Sarah needs
If the cd rotates clockwise at 500 rpm (revolutions per minute) while the last song is playing, and then spins down to zero angular speed in 2.60 s with constan
Factors to consider when comparing credit cards​ are:
A narrator can be an important part of narrative writing Choose another important fact about about Narrative writing?
What is the total weight of the items already packed?