1) Given a stack how to reverse the elements of the stack using push() and pop() only.
Karumanchi : pg 91
2) Implement a queue using 2 stacks
Karumanchi : pg 104
3) Implement a stack using 2 queues
Karumanchi : pg 105
1) Given a stack how to reverse the elements of the stack using push() and pop() only.
Karumanchi : pg 91
2) Implement a queue using 2 stacks
Karumanchi : pg 104
3) Implement a stack using 2 queues
Karumanchi : pg 105