De Bruijn sequences: Difference between revisions
m
→{{header|Perl 6}}: Updated for changed spec.
Thundergnat (talk | contribs) (→{{header|Perl 6}}: Add a Perl 6 example) |
Thundergnat (talk | contribs) m (→{{header|Perl 6}}: Updated for changed spec.) |
||
Line 119:
for 0..9999 { .fmt('%04d').say unless %chk2{ .fmt: '%04d'} }
put "\
▲$seq.substr-rw(4444,1) = $ch + 1;
my %chk3;
Line 142 ⟶ 141:
Missing 4 digit PINs in the reversed sequence:
Replace the 4444th character
Missing 4 digit PINs in the revised sequence:
Line 150 ⟶ 147:
4591
5914
8145
</pre>
=={{header|REXX}}==
|