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

please help meeeeeeeeee
reeeeeeeeeeeeeeeeeeeeeeeeeeee
The main economic activity that occurs in the US regions circled on the map above is __________. A. farming B. fishing C. manufacturing D. mining
According to "Eileen Collins—NASA's First Female Shuttle Commander to Lead Next Shuttle Mission," what are Collins's goals relating to other female astronauts?
EXCERPT FROM 'A CHRISTMAS CAROL': MARLEY'S GHOST What does Marley’s chain represent? a)the acts of kindness that he has shown others b)the debts that he needs t
express as an improper fraction 13 ⅔​
The cardiovascular system, which transports blood through the body, is a one-way system.
How long after Anne's death did the war in Europe end
Can anyone please help me with this????Please help me.
Is the following equation an example of direct variation? y equals 5 x