can any one help me with the code for the pop & push methods in the class that implement a Stack with two Queues

Recommended Answers

All 2 Replies

Member Avatar for iamthwee

I'm confused as to what you mean.

You do realise that you don't need a queue to make a stack.

Or have you been explicitly asked to create a stack using two queues. Now that's different matter?

can any one help me with the code for the pop & push methods in the class that implement a Stack with two Queues

Yes, let's see you start first.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.