#13
Gambler's Ruin
Also asked as: The gambler's ruin problem · random walk ruin probability
One of the classic quant interview questions, free to read in full.
MediumProbability
Problem
You start with $30 and bet $1 on fair coin flips (win $1 on heads, lose $1 on tails), stopping when you reach $100 or go broke. What is the probability you reach $100?
Your answer
Accepts decimals, fractions (5/12), and percentages (25%).