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

Trucker hiked 15 miles in 3 hours. How many miles does Tucker bike in 1 hour?
what word contains the ketters N and Y and a?
I am a grade 9 student currently studying biology, chemistry and more as my electives. \ desire to be a doctor and is amazed by the human body and structures of
Nearly 1 million South Sudanese refugees in Uganda.a. Trueb. False
Prepare an art integrated assignment (Chart tabulation of music, costume, region, language association)
1. Phionah poured 100cm³ of water. Phionah later mixed 400cm³ of salt solution of density 1.6gcm3 in the water above. Determine the density of the mixture​
Alayna is paid £850 per month. Each month she spends 68% of her pay and saves the rest. How many months will it take Alayna to save £4624?​
please answerrrrrrrrrrrr
PLEASE HELP AND FAST!!! GIVING BRAINLIEST 1. The man on the left represents "Ancient Rome." What do you know about Ancient Rome? 2. Uncle Sam is standing on the
Montu finishes a piece of work in 24 days. How much work will he complete in 8 days?​