Probability of Exactly K Heads with a Biased Coin (DP)
A biased coin lands heads with probability p=0.7 and tails with probability 0.3. Flip it n times (n=10 in the original question). Find the probability of getting exactly k heads (k=5 in the original, ...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
