Qm

Five gifts returned so no one gets their own

Five friends each brought one wrapped gift to a party. The gifts get shuffled and handed back, one to each friend.

In how many ways can the gifts be returned so that no one receives their own gift?

Your answer

Solving needs a free account

Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.

Discussion

Sign in to join the discussion Β· reading is open to everyone

πŸ’‘ Discussion rules

  1. No full solutions here. Hints and approaches only.
  2. Complexity, edge cases and intuition are the point.
  3. Interview experiences are welcome. Respect your NDAs.

Loading discussion…

Learn the concepts

The theory behind this question.

Related questions

Four letters, none in the right envelopeSix coats returned, none to its ownerFive gifts with exactly one going home rightFour hats returned with at least one correctExactly one friend gets their own gift back
All questions β†’