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 angle AZB? ?
A virus's DNA or RNA is surrounded by a(n) A) protein coat. B) nuclear membrane. C) tail. D) endospore.
What does super Tuscan mean
How many grams of sulfur dioxide are there in 12 liters of sulfur dioxide?
which american Indian group formed an alliance with the British as the French and the Indian War began?
What impact would expect south africa's decision to levy duties on drugs imports from western nations to on the international distribution of drugs to south afr
How many building permits were issued in Carteret County in 2014?
George plans to cover his circular pool for the upcoming winter season. The pool has a diameter of 20 feet and extends 12 inches beyond the edge of the pool.
The product of two consecutive even integers is 360360. find the integers.
What is the relationship between Lincoln's proclamation and the 13th Amendment?