Perl 6, 84 bytes
{(($!={$/=[1..11];:10[map {|splice $/,$_,1},[R,] .polymod(1..10)]})($_+1)-$!($_))/9}
Calculates the elements directly.
2 of 6 | deleted 9 characters in body | ||||
Perl 6, 84 bytes
Calculates the elements directly. |