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 8748347 times 474843723 devided by 584752 minus 843474820
Is Fe(OH)3 acid or base?
Give Examples List short-term and long-term goals that people you know set and achieve.
30.0 grams of NaNO3 is dissolved in water to make a 5.00 L solution. What is the molarity of the solution?
Rewrite the equation by completing the square. PLEASE HELP!! x^2+x-72=0 Write like this: (x + ___)^2 = ___
What are 3 ways objects can be grouped based on how much light they let shine/pass through them.
Identify the domain and the range of the relation. 42811001104 a. D:{-2,-8,0,4} R:{-1,0, -1} b. D:{-1,0,1} R:{-2,-8,0,4} C. D:{-2,-8,-1,0} R:{0, 1,4} d. D:{-2,
How does the nucleus controls cell? Be specific
help me find the volume ):
QUICK HELP PLEASE!!?? Need answer QUICKWhat type of solution would you have if you dissolved 60g of Na2HAsO4 in 100g of 60oC water?A. supersaturated B. unsatura