Solved problem library

Study elegant solutions

Search interview-grade problems and focus on the reasoning pattern behind each result.

A Ratio of Uniforms

XX and YY are independently and uniformly distributed on [0,1][0,1]. What is P(1<X/Y<3)P(1 < X/Y < 3)?

The Birthday Collision

Assuming 365365 equally likely birthdays, what is the smallest group size for which a shared birthday is more likely than not?

Three Heads Before Three Tails

A fair coin is tossed until either three consecutive heads or three consecutive tails appear. What is the probability heads wins?

Balanced Committee

From 6 women and 5 men, how many 4-person committees contain exactly 2 women?

Misaddressed Letters

Four letters are placed randomly into four addressed envelopes. What is the probability no letter reaches its correct recipient?

Adjacent Aces

A standard 52-card deck is shuffled. What is the probability all four aces are consecutive?

Waiting for a Six

A fair die is rolled until the first six appears. What is the expected number of rolls?

Collecting All Faces

How many rolls of a fair six-sided die are expected until every face has appeared?

Maximum of Three

If X1,X2,X3X_1,X_2,X_3 are independent \operatornameUniform[0,1]\operatorname{Uniform}[0,1] variables, what is \mathbbE[\max(X1,X2,X3)]\mathbb{E}[\max(X_1,X_2,X_3)]?

Precision of the Mean

A population has variance 1616. For a random sample of 6464 independent observations, what is the standard error of the sample mean?

Showing 10 of 10 solved problems