Superpermutation minimisation: Difference between revisions

m
→‎{{header|Perl}}: re-fixed typo
m (→‎{{header|Perl}}: fixed typo)
m (→‎{{header|Perl}}: re-fixed typo)
Line 361:
 
=={{header|Perl}}==
This uses a naive method of just concatenating the new permutation to the end (or prepending to the front) if it is not already in the string. Adding to the end is similar to Python's s_perm_1'''s_perm1()''' function.
 
{{libheader|ntheory}}
2,747

edits