C++ Program to implement Stack using Two Queues
Program to implement stack using two queues.
Time Complexity- O (1)
Space Complexity- O(n)
OUTPUT
50
40
30
20
10
-1
-1
If you Have Any doubts join the discussions below , our moderators will reach to your doubts .