FunctionRacerProblemsRace

At Least K Wins

EasySciPyPython

Each of n tries wins with chance p, independently. Return the chance of at least k wins.

Example 1

k 1
n 1
p 0.5
returns 0.5

One try that wins half the time.

Constraints

Race itor take your time

Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.

More SciPy problems