At Least K Wins
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
1 <= n <= 600 <= k <= n0.05 <= p <= 0.95
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.