aspose file tools
The moose likes Java in General and the fly likes Stack using two queue Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Stack using two queue" Watch "Stack using two queue" New topic
Author

Stack using two queue

vinay kalal
Greenhorn

Joined: Sep 19, 2010
Posts: 9
Hello everyone

Could anyone tell, how to implement a stack using two queue.i am looking for general approach not for only four element.

Please help.
Mohamed Sanaulla
Bartender

Joined: Sep 08, 2007
Posts: 2926
    
  15

Is it an assignment question or an interview question? Think on lines of- Moving all elements from one queue to another to except the one to be popped.


Mohamed Sanaulla | My Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Stack using two queue
 
Similar Threads
Heap / Stack
Help regarding User-name Token
WA #1.....word association
queue or priority oueue
How does this actually solve Towers of Hanoi?