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

match the following terms ....
I want the answer of this . .
Elevation and the presence of features such as mountains and rivers make up an area’s
Which graph represents the function f(x)= 0.2^x + 3
A scientist notices an increase in the glucose production in the plants he is studying. What are the possible reasons? Check all that apply.
Marcia is given an incomplete chemical equation that includes the number of nitrogen atoms present in the products of the reaction. How can she conclude that th
On December 31, 2021, Coolwear Inc. had balances in Accounts Receivable and Allowance for Uncollectible Accounts of $42,000 and $1,150, respectively. During 202
What type of government did many cities adopt after Galveston?
Can someone help me with this geometry problem please ?
A new Neighborhood Activity Complex is being built in Safe Harbor. The perimeter of the rectangular playing field is 486 yards. The length of the field is 2 yar