Qm

How many floors does the elevator stop on?

An elevator leaves the lobby with 5 riders. There are 3 upper floors, and each rider independently chooses one of the 3 floors uniformly at random. The elevator stops at a floor if at least one rider wants it.

On average, how many distinct floors does the elevator stop at?

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

How many printers get at least one job?How many tables get at least one guest?How many coupon types after four purchases?How many weekdays hold a birthday?How many rising steps in a shuffled list?
All questions →