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

SOME ONE PLS HELP ME THIS IS URGENT According to the image below, which season is about to begin in the southern hemisphere? Image shows Earth tilted 23.5 degr
The typical orchestra of the classical period consisted of
There are six performers who will present their comedy acts this weekend at a comedy club. How many different ways are there to schedule their​ appearances?
A solenoid of length 0.700 m having a circular cross-section of radius 5.00 cm stores 6.00 µJ of energy when a 0.400-A current runs through it. What is the wind
Intensity of a wave is the.
HIV be transmitted by: urine in a cut on the skin
Which logarithmic equation has the same solution as x-4=2^3
HEEEEELLLPPP!! The Soviets divided Central Asia into yurts when they ruled. True or False?
Prove the 'rule of 9': an integer is divisible by 9 if and only if the sum of its integers is divisible by 9.
Which of the following was the most likely reason President Truman decided to use atomic bombs against Japan? A. He feared the loss of life that would be involv