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

how to solve 3/4 = 8/x-1
The value of the underlines digit in (3) 326,619 is 3 hundred thousand true or false
How do I simplify 9/243
H(x)=(x^2)+1 and K(x)=-(x^2)+4. If K(H)=0, what are the roots/solutions? a. ±i√3 b. ±i c. ±2 d. ±1 e. ±1, ±i
How do I simplify 9/243
How do you solve this problem 9a+10(6a-1)
If 2x+ 3y = 55 and 4x= y+ 47, find x − y. Can you please explain with some details?
Answer on this one please: the coastline of the United States is 12,383 miles long.canada's coastline is 113,211 miles longer than the coastline of United State
How do you write 0.17 in word form?
how would i solve A= 1/2bh for b