Skip to main content
All Questions

20-sided die, 100 rounds: roll, or take the face value in dollars. Each time you take money the casino may reroll the die to cut your winnings. How does the game play out?

Unlock detailed company stats for this questionUpgrade
A casino game uses a 20-sided die with faces numbered 1 to 20. At the start the die is on the table showing 1. You have 100 rounds. In each round you either roll the die, which pays nothing, or take from the casino a number of dollars equal to the face showing. The die stays on the table when you take money, so the same number can be taken again in a later round. Now the casino also plays: each time you take money, it may choose to reroll the die once. Its reroll does not use up one of your rounds, and the casino's aim is to minimise the amount you make. This may be too complicated to solve exactly. How do you think this version will play out?

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.