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

This nation is the second-largest producer of opium in the world. -Cambodia -Laos -Myanmar -Brunei
What political group did Dante oppose
How many atoms of carbon (C,12.01 g/mol) are in a diamond with a mass of 0.568 g?
Write an equation in slope-intercept form of the line that passes through (-1,-3) and is parallel to the graph of y=4.
What fuction respersents a slope of -4 and yintrersection -2?
I don't know how to do this question, help!!
The New Deal's support for organized labor was best shown by A: bolstering the nation's banking system B: setting up a national retirement system C: establishin
What happened as a result of the Articles of Confederation? A. The government raised a lot of money. B. The government disbanded the army. C.
A person who learns best by hearing is known as a(n) ______ learner
Answer ASAP for five stars and brainliest! 1. The half-life of a radioactive kind of antimony is 60 days. How much will be left after 240 days, if you start wit