← Questions

Probability that every coffee from one shop beats the other's

0
MercorCodingLast asked Oct 2026

Two cups come from one coffee shop and two from another, and each cup's quality is an independent draw from one continuous distribution. How likely is it that the first shop's cups both outrank the second shop's? Then generalize to a coffees from A and b from B and return the answer as a reduced fraction. Reason about which orderings of the coffees are equally likely.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding