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 result of shifting a circle with equation (x+3)2 + (y-2)2=36 left 3 units
Given what was going on in the country at the time, why might Democrats have opposed these plans?
Use the rules of equations and inverse operations to solve the equation3x^2=48. ±2 -4 ±4 4
Graph the function f(x)=x^2-4x - 5 on the coordinate plane. (a) What are the x intercepts? (b) What is the y intercept? (c) What is the maximum or minimum v
Who is faber Fahrenheit 451
URGENT HELP PLEASEWhat type of figurative language is used in the following quote?"The fog still slept on the wing above the drowned city . . ." A. Adjectives
why clouds are fluffy​
Which is a symptom of depression
what are the two classes of vitamins and which fall into each place?
Dave is three times as old as his sister. In seven years the sum of their ages will be 38. How old are they now?