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

Approximately when did World War I occur? A. 1910s B. 1930s C. 1940s D. 1960s
How did Benjamin Banneker uses Rhetorical strategies to argue against slavery?Be specific Thank you,
what does como te llamas mean in Spanish?
graphs are used to show how the responding variable changes in response to the -------------------  variable.
Ramon has a rope that is 25 1/2 feet long. He wants to cut it into 6 pieces that are equal in length.  How long will each piece be?
Which word in the sentence is an indirect object?Choose all answers that are correct.Give Ben and his cousins a snack before bedtime.  A.cousins  B.snack  C.Ben
a cube has surface area 6534 square feet. what is the volume
767074 rounded to the nearest hundred thousand
Simplify 2/(2+ square root of 3)
A city in the Middle East that is sacred to Jews, Arabs, and Christians is __________.