Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bitshiftfaced
11 months ago
|
parent
|
context
|
favorite
| on:
A confusing probability question: Red and green ba...
I'm stuck at the first continue statement. Doesn't that suck up one of your num_trials? This can never happen per the conditions laid out, but then you put num_trials in the denominator when returning the percent of times it was green.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: