Write an iterable Stack client that has a static method copy() that takes a stack of strings as its argument and returns a copy of the stack. See Exercise 4.3.48 for an alternative approach.
EXERCISE 4.3.48
Copy constructor for a stack. Create a new constructor for the linked-list implementation of Stack so that
Stack- t = new Stack
- (s);
makes t a reference to a new and independent copy of the stack s. You should be able to push and pop from either s or t without influencing the other.
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.