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 the problem 4 times 12 equals 48 which numbers are the factors
simply each question
jack has a 8-ft long board. he cut off 1/6 of it how long is the remaining piece in feet and inches
Suppose you feel hungry so you reach for a plum you see in a fruit bowl. explain how both external and internal stimuli are involved in your action
As a _____, Allison buy jeans; and as a _____, Allison make T-shirts. So, she plays both roles. producer, consumer entrepreneur, producer consumer, producer
What is the median of the data shown? 40, 51, 63, 54, 35, 45, 65, 47, 38, 45, 58     The median is
Help Please. Read the excerpts from chapter one of The Strange Case of Dr. Jekyll and Mr. Hyde. Excerpt 1: Mr. Utterson the lawyer was a man of a rugged coun
Mutt and Jeff are running along a path each pushing a cart loaded with rocks. If Mutt's wagon has a mass two times greater than Jeff's and they want to stay tog
Help me ASAP!!! (64 ÷ -4) ÷ (-2)
I need this solve 34÷73,227