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

why can the suns rays cause a burn but the light from a flashlight cannot harm your skin?​
Company X, which is a chemical manufacturer, uses crude oil and buys it in the spot market on a monthly schedule. A crude oil swap is quoted by the dealer at $2
27.Provide security to the peopleA.Rights B. Laws C. Duties D. Truth​
In a given set of items, the mode is items which ? a. appears first b. appears fewest c. appears farthest d. appears most
Write Lincoln's call to action in your own words “With malice toward none, with charity for all, with firmness in the right as God gives us to see the right, le
Most communities are built near B. Seacoasts A. Wood C. Mountains D. Water
How do emotions positively and negatively influence critical thinking? Describe how you balance your emotion and reason when making decisions. Include an exampl
Someone please help! Thxx
Please help with this page
Please help with this exercise