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 tenths place in the number 520.34
help pls jfsajkdfsfdjbfjsfsdfsdfa
What features make Old Havana distinct from other parts of Havana?
Your friend Fred claims that his average gym workouttime is at least 150 minutes per day. You pick a randomsample of 10 days and observe that on the days in the
What was the long-term effect of the Northwest Ordinance of 1787?
Name and explain two types of pre-writing
What likely explains the poor standing of Leopold II among historians today
Which angle is vertical to <1?<___a) 2b) 3c) 4​
science question i dont know v.2
Question #4 Multiple Select Which of the following statements are true when addressing feedback? Select 3 options. Most negative feedback should be ignored. The