Skip to main content
All Questions

You build a deck from cards labelled 1 to 5. Each round an opponent who knows the deck names a number and pays you that number, until a drawn card matches. Which deck is best?

Unlock detailed company stats for this questionUpgrade
You build a deck out of cards labelled 1 to 5, using as many copies of each label as you like, and your opponent is told exactly what is in it. Each round he names a number and then a random card is drawn. He pays you the number he named whatever the card shows; if the card does not match, the card is returned, the deck reshuffled and another round is played, and if it matches the game ends. He chooses guesses to minimise his total payment. How do you compose the deck to maximise your expected winnings?

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.