#60
Buffon's Needle
Also asked as: Buffon's needle problem · estimating pi by dropping needles
One of the classic quant interview questions, free to read in full.
HardProbability
Problem
A floor is ruled with parallel lines exactly one needle-length apart. You drop the needle so its center lands uniformly at random and its angle is uniform. What is the probability the needle crosses a line?
Your answer
Accepts decimals, fractions (5/12), and percentages (25%).