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 distance moved if we have a 70N force and work done is 8J?
Does anyone understand what this is asking?
The combustion of 0.25 mol of an unknown organic compound results in the release of 320 kJ of energy. Which of the compounds in the table could be the unknown c
PLEASE HELP MEEE What does the author accomplish through this paragraph in the passage? While it seems obvious that our glasses should be filled with water ins
Does anyone know how to do this? I know it's easy but I forgot please help
pls simplify. 9x2 + 39x + 42
What is radical sign .85 (1-.85) divided by 1200
(10 points) Suppose an advance in technology in Macroland leads to an improvement in labor productivity at the same time that the population expands. Explain wh
Describe garfield in 3 complicated words
Which allies gained territory