euler-0.1.0.0

Safe HaskellSafe
LanguageHaskell2010

Euler.Problems.Problem68

Description

The string is 16 digits iff the 10 is on an external node. So we fix the 10 at index 0, an arbitrary external node.

The indices in this diagram are arbitrary, except for 0; since it represents 10, it must be on the outer ring.

0 5 1 9 6 4 8-7--2 3

Documentation