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

The following system of equations can be used to find the roots of the equation x3 + 72 = 5x2 + 18x. Adjust the window so you can find all of the points of inte
a car has a kinetic energy of 432,000j when traveling at 32 meters a second, what's the cars mass?
can you complete the matching below. Thank you!!
What was the program Mao started in 1958 to transform China's economy? Great Revolution Green Revolution Cultural Revolution
How many meters are in 1,000 centimeters?
Circuit has a single pathway for the electrons of flow. series parallel
What are The usages of transducer in ultrasonic??
How does Katniss plan to strike at the Careers?​
Jenny is accused of breaking a federal law. Which section of the diagram represents the court that will have original jurisdiction points)
Graph the function on your own paper. Answer the qustions in the box below. Ax) = x² – 2x What is the y-intercept? Explain how the graph is related to the monom