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

To analyze indirect characterization, what should the reader note? a character’s actions a character’s clothing a character’s personality a character’s appearan
what were the reasons for the truce that ended the peloponnesian war ?
What process is being shown by the movement of particles from one flower to another? Please help me fast.
After the attack, Díaz...A. kept the truth a secret. B. worried about his mom finding out. C. felt confident in facing the brothers. D. stayed away from school
Which expression is equivalent to 4^5 x 4^-3? Α. 4^8 B. 4^2 C. 4^-2 D. 4^-8 Please help
Rewrite in standard form. Find the center and radius of the circle. Show all of your work for full credit.
h + 12 = 31 equal what equation h=
Solve for x pls and thank you
i need help with this reading question.
What are the 6 opening ceremonies positions in the ffa