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 system of linear inequalities is shown in the graph? Enter your answers in the boxes.
Please answer asap!! Nate drops a penny into a fountain at the mall. It falls from his hand straight down into the fountain. Describe what the free body diagram
If A=by, what is A when b= 8 and h=4?
Neuroimaging data show that neuronal activity in the amygdala of depressed patients is:
Which statement is true regarding the end of the Reconstruction era?
What component in a circuit does this symbol represent?
hELPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
Biomass is a way to describe the overall amount of living organisms in an area. Using the figure below, choose the most likely reason for the decrease in biomas
Who holds the highest power in a democracy? king president congress people
In a random sample of 70 people, it was found that 44 of them were fans of the New York Yankees. What is the margin of error for the true proportion of all indi