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 mass of three moles of ethane (c2h6) A) 30.12g B) 60.32g C) 90.24g D) 120.45g
un resumen sobre la película el club de los poetas muertos porfa urge
Given three possible phenotypes for parents showing dominance (AA, Aa, aa), which combination would produce a 1:2:1 ratio of genotypes and a 3:1 ratio of pheno
x + 53 = 87 what does "x" mean. Plz explain!
Which saying best sums up how most people choose a spouse?
During the process of fertilization, a haploid egg cell fuses with a haploid sperm cell. the nuclei of the cells fuse, and the homologous chromosomes pair up. w
Find a cubic function with the given zeros. (2 points) Square root of six. , - Square root of six. , -3
translate the algebraic expression 1.the sum of 10 times a number and a number 2. 5 times the difference of two numbers 3. product of a number and 5 is 15
A toy manufacturer wants to minimize her cost for producing two lines of toy airplanes. Because of the supply of materials, no more than 40 Flying Bats can b
To critique a text. Readers