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

The y-component of the electric field of an electromagnetic wave traveling in the +x direction through vacuum obeys the equation ey=(375n/c)cos[kxâ(2.20Ã1014rad
Experts/acee plz helppp
Which reason/motivation would have led you to join the crusades?why?
What part of the atp cycle are analogous to saving money?
How to connect pc to internet with laptop ethernet?
What usually happens when a newborn smells vinegar,rotten eggs or ammonia?
how is orson Welles's character macbeth different from shakespeare's macbeth ?
How did the climate or geography of north africa change between 10,000bc and 1000bc A. The climate cooled and many tropical areas experienced freezing temperat
Which transformation is shown ?
How did Thomas More’s work help spread humanistic ideas? He applied them to the Church. He applied them to society. He applied them to theater. He applied them