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

Helpppppppppp please
Answer these questions thank u.
Two teens date for a while and then break up. They are not intimate during their time together. The boy continues to follow and harass the girl even after she t
What is expected to happen to malaria-carrying mosquitoes in the coming century?
Please help this is urgent!! list the cubes of the numbers from 1‒6, and 10. Then write the cube roots of each cube.
To reduce potential liability, in which area should real estate professionals not provide expert information?
Epic machinery only appears to epics from Western traditions that consciously imitate Homer. True or False?
List the steps of creating a virtual image with a plane mirror
“Your salary is $25,000 and you will be receiving a 2.5% pay increase this year. What will your new salary be?”
Which one of the following health care workers would be employed to provide services at a rehabilitation center?        A. Jim, a health information manager