Topswops: Difference between revisions
m
→Searching permutations: hindent, tidying
SqrtNegInf (talk | contribs) m (→{{header|Potion}}: Fix comment: Perl 6 --> Raku) |
m (→Searching permutations: hindent, tidying) |
||
Line 971:
topswops :: Int -> Int
topswops n = maximum $ map tops $ permutations [1 .. n]
main =
mapM_ (putStrLn
{{out}}
<pre>1: 0
|