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

#2 Mai bought a television for $330. The tax rate is 8%. What is the total amount Mai paid for the television? Please and Thank You!
Humor should never be used in a presentation as it will distract your audience. A. True B. False
the function f is defined by f(x)=x2+3x-10 if f(x+5)=x2+kx+30, k=____________(<<
How does the novel�s setting on an uninhabited island affect the boys� behavior in the first few chapters of the novel? will thumbs up please help me Question
Organs combine to form Blank Space __________. A.organ systems B.tissues C.organisms D.cells
An electric current must always move in a circle or path: • From the electric source through a wire to a ____________that uses electrical energy • From the ma
plants produce carbon dioxide as a product of cellular respiration. but you know that plants release oxygen, not carbon dioxide. develop a logical argument for
What makes South!, a memoir by Ernest Shackleton, fall under the nonfiction genre
From which world regions have many of Europe’s more recent immigrants arrived?
12,000 scientific notation