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

Think about how all the northern right whales currently alive are the product of only three different females. Why does it matter that we know this? What import
What is the slope of the graph of 4x-16y=15. Also can you please show your work trying to better understand
Which of the following represents the most accurate estimation of 388 - 212?
Why is it uncommon for congress to override presidential vetoes?
0.4 divided by 0.242
What did John Wycliffe believe was the path to God? A: The Bible B: Good works C: the pope D: faith
How do you use the vertical line test?
I'm confused on how to solve this: What is 5i+7i x i
the sum of two consecutive odd )or even ) integers,the sum of the angles of a triangle
A circle has a circumference of 56cm.what is the radius of the circle