Maximize Probability of Drawing Two Red Balls
OneMain FinancialData Scientist · Technical ScreenLast updated
This interview question evaluates statistical assumptions, formulas, estimation strategy, uncertainty, edge cases, and interpretation in a realistic interview setting. A strong answer for Maximize Probability of Drawing Two Red Balls states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.
Scenario
Distributing 100 red balls and 100 blue balls into two baskets; one ball is drawn from each basket without replacement.
Question
How should the balls be allocated between the two baskets to maximise the probability that both drawn balls are red? Compute that maximum probability.
Hints
Let x be red balls in basket A, y in basket B; optimise P(red from A)×P(red from B).
Solution walkthrough is for members
Get the full walkthrough with reference code and complexity analysis, plus Kitty Coach at 300 messages a day. Hints, the code runner and community answers stay free.