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

find the value of A , B and C from the following figure​
explain micronutrients
why some teens struggle with the decision to remain abstinent?
In an experiment, the molar mass of the compound was determined to be 118.084 g/mol. What is the molecular formula of the compound?
Mika is a nursing assistant who is asked to dress a patient's wound. she gives the patient a numbing medication and immediately starts to remove the dressing. s
After viewing the video clip on ""KlipTech"" provide an argument that Joel Klippert and his idea represent an entrepreneurial venture. What ""School of Thought"
If you were asked to give a presentation on the benefits of a diversity club, which sources would be reliable for researching the topic? check all that apply. a
PLEASE HELP! PIC ATTACHED
Suppose that a simple economy produces only four goods and services: sweaters, CDs, sugar, and soft drinks. Assume one half of the sugar is used in making the s
what is the distance from (7,0)- (-5,5)