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

What are some factors that discourage teens from trying to help when they suspect a friend might be depressed?
English grammar determiners
From what point of view is the story sweet potato pie being told? 1st person 3rd person Limited Omniscient
Which resources is the sub set of stock?
- 2 * root(4, 80x ^ 8 * y ^ 9 * z)
The American general who was in charge of the U.S. Army’s occupation of Japan was a. Douglas MacArthur. b. Dwight Eisenhower. c. George Patton. d. Omar Bradley.
How does the apparatus work? Write an explanation using your model to help you explain.
A 2-column table with 6 rows. The first column is labeled x with entries negative 2, negative 1, 0, 1, 2, 3. The second column is labeled f of x with entries
Mrs. Bland is type “A” and Mr. Bland is type “O.” They have three children named Tony, Toni, and Tone. Toni is type “O,” Tony is type “A,” and Tone is type “AB.
Find the lengths of DE and EF. Note: Segments BC and DF are parallel. A) DE = 7 cm; EF = 5 cm B) DE = 10 cm; EF = 6 cm C) DE = 9 cm; EF = 15 cm D) DE = 19.6