Card Shuffler

Alice and Bob want to make a card shuffling machine for their poker club. The problem is that they propose different algorithms and thus can't decide which one to apply:

  • Alice: For each card (going from left to right), swap it with one of the cards on its right, including itself.
  • Bob: For each card (going from left to right), swap it with any other card.

Whose algorithm is better, or does it really matter?

×

Problem Loading...

Note Loading...

Set Loading...