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

Global winds are directly caused by the Earth's rotation and ____ A. the release of carbon dioxide into the atmosphere. B. uneven precipitation rates. C. the
HELPPPPPPP Consider the equation 3/4 y = 2.4x. Solve the equation for y. What is the constant of proportionality?
Explain how energy allows a paper clip to be attracted to a magnet
The number of license plates on a car is measured in the __. A.ones B.thousands C.hundreds D.tens
Suppose that the local sales tax rate is 7% and you purchase a car for 11,100
Find the GCF of the three terms below 20xy^2+10xy^3+15x^3y^2 and rewrite the expression by factoring out the GCF
For the South, the primary aim of the war was to preserve slavery. t or f
Silver nitrate, AgNO3, can be used to test for the presence of chloride ions in solution, because it readily forms a precipitate of AgCl. What volume of 1.5 M A
Define gravity in your own words.
What Is The Circumference Of This Circle? Use 3.14 For Pi. There Is A Line Down The Middle Saying "12 cm"