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 do I do to figure out this problem:3x+8=26+x
write in decimal form fourteen and eighty-Four hundredths
What's the term for: unwilling to bend; unyielding
write in decimal form fourteen and eighty-Four hundredths
a subway train starts from rest at a station and accelerates uniformly at 1.8m/s^2 for 15 sec. then it runs at a constant speed for the next 35 sec. before dece
Solve the quadratic by factoring 2X²-2X-12=0
A sound wave of 70 cm travels 840 m in 2.5 sec. What is the velocity and frequency of sound?
Which chemical equation best describes the reaction of potassium metal with fluorine gas to form solid potassium fluoride? A. K(s) + F2(g) → KF2(s) B. K(s) + F(
What's the word for to talk on and on pointlessly, without clear direction
what we need to become success