Optimal Stopping with Up to Three Dice Rolls

Optimal Stopping with Up to Three Dice Rolls

You play a game with a fair six-sided die, whose outcomes are 1 through 6.

  • You may roll the die at most 3 times.
  • After seeing the outcome of e...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: