Hacker News new | past | comments | ask | show | jobs | submit login

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: