Hey everyone,
I'm new to the concept of stacks and queues. I think I have the basics, but I have a quick question.
If I am wanting to swap an object, say x, for another object, say y, in a stack or a queue, is this possible without introducing an array to store the objects? Am I missing someting fundemental about the ADTs?
Thank you!