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

which option best completes the diagram? Before the 1960's, there were relatively few interest groups in the United States
Write the valence shell electronic configuration of an element present in the 3rd period and Group IIIA,
The line perpendicular to y=3/4x+7 containing (3,-4)
two waste products of metabolic state their source and how they are removed from the blood​
Find the partial derivatives of the following functions a) z = 8x^2 − 4xy + 5y^2 b) z = 5xe^y c) z = 3xln(y)
What is the next term in the sequence? 2, -4, 8, -16, ...
help please!!!!!!!!!!!!!!!!!!!!!!!
The best way to locate a suffix is to look for a word part that?
how much heat is produced in one hour by an electric iron which draws 2.5ampere when connected to a 100V supply​
Find the measure of the missing angles. 100° b = C=