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

How many units is this value from zero on the number line? |-9|
Please help ( question is in the attached photo )
During clean up time, Ms. Rodriguez found 2 one-gallon containers of ice cream that were each ¾ full. How much ice cream was left?
why was it necessary to increase the distance at equal intervals in the photosynthesis lab?
Which is the equation of a hyperbola with directrices at x = ±3 and foci at (4, 0) and (−4, 0)?
what is our votingrights?​
The number of kilometers y in a measure varies directly as the number of miles x. Write a direct variation equation that could be used to convert miles to kilom
Historians often credit poland for inventing what breakfast food?.
Chandragupta defeated the greek general​
Explain how the details in the first three paragraphs contribute to the arguments presented in the rest of the text. ​