Nope, you create a stack class...with the subsequent attributes...
push() pop() isempty()
And you have many options as to how you choose to do this. I.e using linked lists, arrays blah blah blah.
& what metods do we use in the class that implement the stack with two queues,do we the stack methods(i.e pop()) or dowe use the queue methods(i.e enqueue())
We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.