GeeksforGeeks » Interview Questions

Copy a stack to another stack

(2 posts)
  1. suresh
    Member
    Posted 6 months ago #

    copy contents of a stack s1 to another stack s2 using one temporary stack

  2. kartik
    Moderator
    Posted 6 months ago #

    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.

RSS feed for this topic