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

Original price : 29.99 ; markdown 30% what is the awnser ?
How will temperature affect the rate of photosynthesis? Write a hypothesis here. (Be sure to relate how the *rate of photosynthesis* will change in response to
7 x 6[tex]6 \times 7[/tex]
what can a Doppler radar be used for
what is the diffrance between newtons and force
Write a expression that shows how you can multiply 9x475 using expanded form and the distributive
Which objects did the sun goddess Amaterasu give her grandson, Ninigi-no-Mikoto, as three signs of dominion when she commissioned him as the ruler of Earth?
How do I answer this?
n the line "boogie-woogie rumble / Of a dream deferred" from Langston Hughes's poem "Dream Boogie," what does the term boogie-woogie refer to? A. a style of ja
if a tendon gets torn and cant function properly, which two body systems will be directly affected.