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 given name to a point of land extending into a body of water?
the invisible line at 0 degrees latitude is called
Why do some people doubt that Shakespeare is the actual author of the plays attributed to him? a. Shakespeare was too busy being an actor to have written them.
what is the slope of y=1/4x+1
what is 65.85 rounded to the nearest tenth
how to write 20.65 in word form
Circle the sum 9 + 4= 13
Small bands of Patriots attacked British forces using the hit-and-run technique of?
Is 50% a rational or irrational number
unit rate $7.95 for 5 pounds