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

Solve for the indicated side. A. 35.5 B. 47.9 C. 109.4 D. 37.4 Please help meee it’s due in the morning!
Enrique, ___ tienes en la maleta?
Mia wants to purchase a pair of jeans that cost $36. They are on sale for 20% off. What are two ways that Mia can find the cost of the jeans? Write your answers
I need help !!!!!!!!!!!!!!
Pls help 6th grade math.
what issues did the ideas in the essay move smoothly in logically from one point to the next
Trout Company is considering introducing a new line of pagers targeting the preteen population. Trout believes that if the pagers can be priced competitively at
Use the figure to answer the following question. image What is the area of the figure? A. 65.0 square meters B. 50.0 square meters C. 42.5 square meters
PLEASE HELP Find the product. (a²b³)⁴​
help me pleaseee !! i don’t have long