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

1.901, 1.091, 1.9, 1.991, 1.919, 1.019 from least to greatest plz
12. Which legislation for amendment most helped native Americans in New Mexico gain political equality. A. Civil rights act, because it ended racial segregation
What indicates that Supreme Court is willing to make public policy
In the story “One Thousand Dollars,” Robert Gillian forfeits a $50,000 inheritance. What is the theme expressed by the author in this story? 1)Human kindness ca
The process which causes one plant to receive pollen from another plant is called
What is the equilibrium line of a glacier?
What influence did the british have on the statue of liberty?
What type of symmetry does a regular hexagon have?
I need help how to do this
what is the accelerate of a 5kg mass pushed by a 10 N force?