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

In a paragraph of no less than 125 words, describe how technology helps business professionals to be more efficient. Include examples of hardware and software.
Odell walk 7.35 Mi his brother Darnell walk two point three miles as much as Odell how many miles did Darnell walk
A golf ball is selected at random from a golf bag. If the golf bag contains 8 type A balls, 6 type B balls and 7 type C balls, find the probability that the go
what are the main differences between living cells and viruses
Drag the geographical features that helped Rome flourish to the box. mountains plateaus plains rivers desert geographica
Help ASAP pleaseee!!!
HELP Which of the following passages is an example of a characteristic of a slave narrative from Narrative of the Life of Frederick Douglass? A. "It is a c
What was the purpose of the Civil Rights Act?
justices in which court are appointed for life? superior county state supreme
Marsha at 8/9 yard of fabric she cut it into four pieces of equal length. How long was each piece?