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 is meristematic tissues?
What are the products of semiconservative replication for a double-stranded dna molecule?
-9 x 1/3 equals ___________________________
Which number represents the opposite of -7? A. -(7) B. - (+7) C. - (-7) D. + (-7)
Which one is it A. B. C. or D.
Which one is it A. B. C. or D.
Suppose the half-life of element k is 20 minutes. if you have a 200 g sample of k, how much of element k will be left after 60 minutes? (do not use significant
What would be the magnification of a specimen viewed with a compound light microscope that has an objective power of 10x and an ocular lens power of 5x?
What was the political border established by British during colonial rule?
Select the four enemies that the ancient Romans successfully battled. Samnites Etrusians Flavians Celtics Etruscans Carthaginians