implementation of queue using stacks
Hi,
I recently learnt that a linear queue can be implemented by using two stacks. Can anyone elaborate on this?
I basically require the implementation details in terms of pseudo code etc.
I recently learnt that a linear queue can be implemented by using two stacks. Can anyone elaborate on this?
I basically require the implementation details in terms of pseudo code etc.
0