Project Euler #227: The Chase

  • + 1 comment

    When dice are at their furthest distance there are three options for the change in distance: stay the same, reduce by one or reduce by two.

    In this problem there are a finite number of states and there is an exact solution.

    I’ve written a few ideas down which should point you in the right direction for solving this one: https://www.jamespking.com/posts/hackerrank-projecteuler-227-writeup/

    • + 1 comment

      But when they are not at their furthest distance there is more options including increasing the distance by 1 and increasing by two

      • + 0 comments

        What's the expected value of a fair dice?

        You can still model this situation and find an exact answer.