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 is the name for forces that act on an object and cancel each other out causing the object to be at rest?
the marked prce of an article is rs2800 which is 40% above the cost price if it sold by allowing 20% discount.find of profit and loss​
sentences about snakes bite​
i) Explain how the biochemical reaction can still occur if the blood sugar level is lowerthan the normal range.​
Pls help with this one question
What is the result of 54,000 X 1,200 written in scientific notations
3. Which number represents 5.33 written
Find the slope of the line through the pair of points. L(–9, 6), M(–1, –9)
Given the Graph, identify the slope​
237 Square meters in Square millimeter?