GeeksforGeeks » Interview Questions
Copy a stack to another stack
(2 posts)-
copy contents of a stack s1 to another stack s2 using one temporary stack
-
It looks easy.
1) One by one copy contents of s1 to temp stack
2) One by one copy contents of temp stack to s2
Reply
You must log in to post.