0
How many stacks do we want if we need to swap 2 stacks members in the same order?
2 Antworten
+ 1
2 additional stacks.
Stacks work on LIFO, assume you want to swap A & B.
Move to all members of A to C and members of b to D. then move them C to B and D to A.
0
yes totally correct....😄