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

what is the answer to this question -√(12)+5√(75)
Alex makes ceramic bowls to sell at a monthly craft fair in a nearby city. Every month, she spends $50 on materials for the bowls from a local art store. At the
If the function h(x) represents the number of full hours that it takes a person to assemble x sets of tires in a factory, which would be an appropriate domain f
what percentage of 1457 is 898?
Genetic crosses Question:A brown coat is dominant to a white coat in cattle.  A farmer has a brown bull.  How would you determine whether the bull is a heteroz
Heating zinc sulfide in the air causes the formation of
What are three interesting facts about Susan B. Anthony's childhood ?
What is the solution to this system of linear equations: y-x=4 and y+2x=1 1) (-1,3) 2) (0,4) 3) (1,-1) 4) (-3,3)
what describes the solvent in any solution
If you multiply a number by five and then subtract negative ten, the difference is negative thirty. What is the number?