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

Select the two figures that are similar to each other.
6 1/6 - 5 3/4 PLZ HELP ASAP
If 10 is subtracted from three times a number, the result is 5.Find the number
I don’t get this..please help!
A zone of saturation that is used by inhabitants as a water supply is calleda(n.OOOOA. zone of aerationB. aquiferc. geyserD. hot spring​
writing about interesting place in your country​
what is colonisation ? briefly explain ?​
A 57 g tennis ball is traveling at 45 m/s to the right, when it hits a racket. The ball reversed direction and travels at 33 m/s. The ball is in contact with th
Q: Which direction are the force vectors pointing for a bullet fired from a gun. Assume that the bullet is traveling to the right at 750 m/s. (the bullets vecto
A football coach dislikes African Americans but still hires black players because he thinks they will enhance the team's ability to win. According to sociologis