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

Challenge The value of a baseball player's rookie card began to increase once the player retired. When he retired in 1996 his card was worth $9.17. The value ha
if a coin is flipped three times the probability of getting heads all three times
(6.022∗1023) x 12.0/5.610*10cubed
Given f (x)= x^2-x+1 find f(x+3) =
Express the distance,d, from a point on the graph x+y=2 to the point (6,8) as a function of x
PLEASE HELPFind the value of x.B68ХDx = [?]
Use possible symmetry to determine whether the graph is the graph of an even function, an odd function, or a function that is neither even more on
Please help me because I am unable to find help and I have to turn in this assignment or else I will fail this class for the year.
Gavin and his three friends want to share of a cake equally. Gavin says thateach friend will get of the cake. Use the drop-down menus to explain whetheror not G
A school band has 75 members. The band enters a band competiton at a rival school.1.there are $200 entrance fee each band pluse a $25 entrance fee for each dril