Question: Question 4 Assume you are working with the class LinkedStackofStrings. Complete the sentences below. Pushing an item on the stack takes Select time Popping an


Question 4 Assume you are working with the class LinkedStackofStrings. Complete the sentences below. Pushing an item on the stack takes Select time Popping an item from the stack takes [Select time. checking whether the stack is empty takes constant time Question 5 Below you find some statements regarding loitering. However, one of the statements is WRONG. Which one is it? O Loitering is an issue when removing an element from a stack that is implemented with an array Loitering is an issue when removing an element from a stack that is implemented with linked nodes. O Loitering is the idea that we keep references to an object that is no longer used Loitering prevents the garbage collector from reclaiming memory that is no longer used. 1 pts 1 pts
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
