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

Bridget is allowed to play online games for 75/100 of an hour each day write this fraction as a decimal
EmployIT is a newly established recruitment company. It does not have adequate funds to rent out an office space for its employees so all the employees work fro
Which phylum has members that secrete a hard, calcium carbonate shell? - Arthropoda - Nematoda - Cnidaria - Mollusca
Multiply across +combine like terms
An artist that makes designs on glass is a(n): etcher architect potter engraver
The sum of two numbers is 59 and the difference is 3. What are the numbers? Larger number : ____ Smaller number : ____
The statements and equations show various ways of defining average variable cost, marginal cost, and average total cost. TC is used to abbreviate total cost, VC
What length is the shortest path from A to Cin the graph below?
How many cubic yards is on a area 75’diameter 1.75’ thick
ALEKKKKSS HELPPPPPPP!!!!!!!