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 is the value of [(2/3)^0]^-3
Analysis questions for b.what changes occurred in both forms of the moth over these ten years?
PLEASE I BEG YOU, HELP ME!!!!!!!! Find the rate of change of the function h(x) = 2^x on the interval 2 ≤ x ≤ 4. The rate of change is what?
What did Theodore Roosevelt do before he was elected president at the age of 42?
2. For centuries, Africans enslaved other Africans. Name the two later slave trades that transported millions of Africans to distant lands to work.
If 2/3 + 6 = 7/6p, what is the value of p?
When did the eastern part of the Roman Empire fall?
A sample of gas at 25ºc has a volume of 11 l and exerts a pressure of 660 mm hg. how many moles of gas are in the sample?
Biggest reason why the united states did not want to enter world war 1
How do the structures of alveoli and capillaries support the function of gas exchange?