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

Solve the system of equations by graphing. x+y=6 4x+y=20
What part of Africa is China located in ?
How to study 14 chapters of social science in 3 days I m very tensed pls help me with it don't delete pls .
write a recursive formula for the following arithmetic sequence: -3,3,9,15 a1= an= _____ for n is greater then or equal to 2
Name at least 2 white and black all girl street-gangs in Los Angles California.
Aziza is designing an experiment to test whether the color of a hummingbird feeder affects the number of hummingbirds that feed at it. She plans to buy four hum
solve for what is 2x of 10
if f(x) = x^2-2x-24 and g(x) = x^2-x-30, find (f-g)(x).
would you rather want to feel Shakira's legs while she has leggings. bikini, shorts, or nothing :)?
Pls help asap ixl geometry !