De Bruijn sequences: Difference between revisions

Content deleted Content added
Thundergnat (talk | contribs)
m →‎{{header|Perl 6}}: Fix off-by-one error. Thanks Purefox!
Line 255: Line 255:
for 0..9999 { .fmt('%04d').say unless %chk2{ .fmt: '%04d'} }
for 0..9999 { .fmt('%04d').say unless %chk2{ .fmt: '%04d'} }


$seq.substr-rw(4444,1) = '.';
$seq.substr-rw(4443,1) = '.';


my %chk3;
my %chk3;
Line 279: Line 279:
1459
1459
4591
4591
5814
5914
8145
8145
</pre>
</pre>