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 number should be placed in the box to help complete the division calculation?
How is matter alike and different on the atomic/molecular level?
The body's______provides a framework which protects and supports the organs.
when will have cation felourine??
1. In the on-line convex-hull problem, we are given the set Q of n points one point at a time. After receiving each point, we compute the convex hull of the po
Which one of the following was not one of the names of Columbus's ships? a. La Nina b. La Golondrina c. La Pinta d. La Santa Maria
A customer at a raceway can drive around the track 54 times for $12. At this rate, how many times can the customer drive around the track for $8?
how to do this in proper?
Shanti has just joined a DVD rental club. She pays a monthly membership fee of $4.95, and each DVD rental is $1.95. If Shanti's budget for DVD rentals in a mont
How is Romeo’s love for Juliet different from his love for Rosaline, according to the Act 2 prologue?