Qm
BrainteasersJane StreetSIG

Will there still be blue and green when the reds run out?

A jar contains 10 red, 20 blue and 30 green candies. You take them out one at a time, uniformly at random, until the jar is empty.

What is the probability that, at the moment the last red candy is removed, there is still at least one blue candy and at least one green candy in the jar?

Show a hint

"The blues run out before the reds" is the same as "among the reds and blues only, the last one drawn is red". Think about which colour is drawn last within a subset, and use inclusion-exclusion.

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

Ants on a triangleThe blind archer's third shotThe expected length of the middle pieceThe expected length of the shorter pieceA fair decision from a biased coin
All questions →