interview questions on ds and algo

Solutions on MaxInterview for interview questions on ds and algo by the best coders in the world

showing results for - "interview questions on ds and algo"
Théodore
07 Oct 2019
1enqueue(q, data):
2  While stack1 is not empty:
3      Push everything from stack1 to stack2.
4      Push data to stack1
5      Push everything back to stack1.
6