Haskell: You should clarify that the first step taken must be The sum of adjacent numbers, even if given digits are > 9. And emphasise that you have to reduce to single digit numbers before adding adjacent numbers (19 with added digits = 10, must be reduced again to 1, NOT passed to next reduction cycle)
Description should specify that an element that requires multiple reductions adds multiple steps.
( Haskell, possibly others )
Random tests have arrays that contain numbers up to and including at least
100
.Haskell: You should clarify that the first step taken must be
The sum of adjacent numbers
, even if given digits are > 9. And emphasise that you have to reduce to single digit numbers before adding adjacent numbers (19 with added digits = 10, must be reduced again to 1, NOT passed to next reduction cycle)