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 will be the next digit in the sentence 1, 1, 2, 3, 5, 8, 13, 21, 34?Please show me your way of thinking :)
Who was Samuel F.B. Morse?
Rule for the relationship between certain quantities. Domain Origin Formula Term
The song “America” by Neil Diamond conveys a positive message about what often contentious issue?
Two ratios (fractions) that are equal to each other.
United States lawyer and politician who advocated free silver and prosecuted John Scopes (1925) for teaching evolution in a Tennessee high school
The Virginia town where Robert E. Lee surrendered to Ulysses S. Grant in 1865, ending the Civil War
Where should you go to read President Lincoln’s Gettysburg Address, which is carved in the walls of the Lincoln Memorial? a. Gettysburg, Penn. b. Washington,
y - y₁ = m(x - x₁) Slope-Intercept Form of the Line General Linear Form of the Line Point-Slope Form of the Line Slope Form
IDEAS FOR RECONSTRUCTION, explain why they are good ideas?