You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Queue using two stacks
Create two stacks and pop the elements from stack 1 and print the pop elements into stack 2.
Finally pop the stack2 elements then we get the elements of pop elements as queue elements
0 commit comments