Problem 226. What are the odds?

Created by Loginatorist in Community

Two numbers, A and B are drawn randomly and uniformly on [-R,R]. What is the probability that A*B < A+B. Your function should take one variable, R, and return the probability to within 100*eps. For example, if R = 1/2, then the probability should be:


Solution Stats

39.68% Correct | 60.32% Incorrect
Last solution submitted on Nov 05, 2018

Problem Comments

Recent Solvers19

Suggested Problems

More from this Author7