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

Can someone explain the equation Q = M C delta T or Q = MCΔT Thanks!
why is the square root of a perfect square always rational
4.2meters= how many centimeter
solve the simultaneous equation 4x+7y=1 3x+10y=15
round 7,782 to the nearest hundred
A flatbed truck is loaded 7,000 pounds of bricks. How many tons of bricks are on the truck?
if a star is shown ti be 33.11 trillion killometers away , how many light year would that be
a tabletop in the shape a trapezoid has an area of 6550 square centimeters its longer base measures 115 centimeters and the shorter base is 85 centimeters what
Angie takes a random sample of 100 students in her school and finds that 58% of the sample prefers art over music. There are 1,200 students in the school. Based
The area of the base of a prism is 50 mm2. The perimeter of the base is 30 mm. The height of the prism is 7 mm. What is the surface area of the prism?