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

what were the beliefs of the Federalist
what is the proportion to four is to nine as twelve is to twenty-seven
Is a gcf of two even numbers always even
A person who was trapped outside in a snowstorm would most likely be suffering from _____. hypothermia hyperthermia
Select steps that could be used to solve the equation 1 + 3x = -x + 4.
why did farmers in the late 1800 want inflation
Which statement about the use of perspective in Leonardo da Vinci's The Last Supper is true?
Skimming is most effective when
What does self-actualization mean? a. having high self-esteem b. striving to become the best you can be c. recognizing your own value d. becoming autonomous
The government uses the revenue from taxes to pay for goods and services for the community.