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

I will give 100 points and Brainliest to whoever answers this! This is a tricky question I am stuck on: The points A and B are (1, 2) and (5, 5). When joined to
5 The local lumber store is offering 10% off any purchases. If a customer bought $940.00 worth of lumber, what was the cost after the discount?
Please help me quick
This one is a doozy for me, need help please
Four grade-levels need equal time for indoor recess, and the gym is available for three hours. a. How many hours of recess will each grade level receive? Draw a
Awnser pleaseeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
Where did people first tame a horse?
After World War 2, what changes occurred in Germany
help P[LSLD PSpls pls pls pls pls quick
Josiah has the right to receive compensation for poor service encountered during the purchase of a new sofa. Which consumer right listed in the 1962 Bill of Rig