EasyAlgorithms & Numerical

Monte Carlo — Estimate π

Goldman SachsTwo Sigma

You throw N uniform random points into the unit square and count the fraction that land inside the quarter unit circle. To estimate π, what should you multiply that fraction by?

Approach

What fraction of the unit square does the quarter circle cover?

Related problems

More in Algorithms & Numerical.