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

Why do see lighting from a distant storm before you hear thunder
38th president of the united states
How would you describe the impact of the Mongols and the Soviet Union on the history and development of Central Asia?
A contractor has 48 meters of fencing to use as the perimeter of a rectangular garden. The length of one side of the garden is represented by x, and the area of
Which of the following is generally true about 401(k) and 403(b) retirement plans?
please help :) :) :)
The British navy needed sailors and began taking them off American vessels by force in a procedure called impressment. a. True b. False
people who are lactose intolerance
what is 56 divided by 19
Explain how the rabbit depend on plants.