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 ocean water?
Which describes the reasons for choosing George Washington to lead the Continental Army? A. author of several books on military tactics; reputation for winnin
If a contractor receives payment of 1,480.00, pays 1,111.74 for labor and materials and then deducts 18% of the payment for overhead, how much profit remains?
Which of these Victorian beliefs did Oscar Wilde openly challenge?
Claire takes private lacrosse lessons every 6 days and piano lessons every 4 days. In 60 days, how often will she have lacrosse lessons and piano lessons on the
what happens as thermal energy is transferred from the core to the mantle
Joshua sells 13 toys per hour. Sarah sells 16 toys per hour. This week Sarah sold an additional 20 toys. Write an expression that represents the weekly sales of
Give the coordinates of the point located halfway between (2,1) and (2,4).
5(3x + 5) ( Please Help )
How far do glaciers move in a year?