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

Which statement describes a chemical property of iron?(1) Iron can be flattened into sheets.(2) Iron conducts electricity and heat.(3) Iron combines with oxygen
Which formula represents lead(II) chromate? (1) PbCrO4 (3) Pb2CrO4 (2) Pb(CrO4)2 (4) Pb2(CrO4)3
My father was known as Light Horse Harry.
Write the inequality in interval notation X is greater than or equal to negative 4
a swing has a period of 10 seconds. What is its frequency ?
a car travels 100 meters in 4.0 seconds. Find the average velocity
1.the current atomic model would be revised if? A.)better microscopes were being used to study its structure B.) better microscopes are invented in the future
Gail and her three friends all share half a pie. Gail a and her friends each eat an equal sized piece. They believe each piece has and angle to 25 degrees. Are
What is the chemical formula for zinc carbonate?(1) ZnCO3 (2) Zn(CO3)2 (3) Zn2CO3 (4) Zn3CO3
Which statement correctly describes diamond and graphite, which are different forms of solid carbon? (1) They differ in their molecular structure, only. (2) The