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

Calculate Δ H ∘ in kilojoules for the reaction of ammonia (Δ H ∘ f =−46.1 kJ/mol) with O 2 to yield nitric oxide NO (Δ H ∘ f =91.3 kJ/mol) and H 2 O(g) (Δ
(Who are you riddle) I am greater than 2. I am a common factor of 6 and 9
A wifi router is located at point (2 , 5) and the signal is best within 5 meters of the router. Which of the following location can get the good wifi coverage
A ball bearing is shaped like a sphere and has a diameter os 2.5 centimeters l. What is the volume contained inside the ball bearing? Use 3.14 pi. Round your an
What two ratios are equivalent to 8/6?
Express 0.18 as a fraction in lowest terms. A:10/18 B:9/50 C:18/100 D:3/16
WHY ISNT WEED LEGAL YET
What is the state motto of Ohio? Please help
How does the monroe doctrine tie to Cuba?
which on of the following steps can shield against discovery of an incident report?A. conducting a peer reviewB. reporting to the NPDB C. invoking the work prod