Stack Implementations
One data structure can sometimes be used to implement another data structure. For example, in this chapter an ArrayList is used to implement a stack . Describe how you would implement a stack using
a. a linked list.
b. a queue.
Does the efficiency of your push (…) and pop() methods depend on the number of elements on the stack?
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.