Skip to main content
All Questions

You roll a fair 10-sided die with faces 0 to 9 again and again, adding each roll to a running total, but a 0 wipes out the total and ends the game. When should you stop?

Unlock detailed company stats for this questionUpgrade
You roll a fair 10-sided die with faces 0 to 9 repeatedly. Each roll adds its face to a running total, but rolling a 0 wipes out the whole total and ends the game. After each roll you may stop and keep the total. What is the optimal strategy?

Community answers

No answers contributed by the community yet.

Related courses

Course

SQL Interview Prep Course

Prepare for SQL interviews with lessons on joins, aggregations, and window functions, then practice real SQL interview questions in an interactive editor with expert solutions.

Course

Data Science Interview Prep

Land your dream data science role at Google, Amazon, Microsoft, Meta, Apple, and other top companies. Learn from mock interviews, frameworks, and advice from senior candidates. Practice statistics, experimentation, coding, SQL, machine learning, behavioral interviews, and more.