| 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
|
|
|
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
|
 |
 |
|
|
subject: Stack using two queue
|
|
|