RosettaCodeData/Task/Find-the-missing-permutation/Icon/find-the-missing-permutation-2.icon
2023-07-01 13:44:08 -04:00

3 lines
241 B
Text

every x := permutes("ABCD") do # generate all permutations
if member(givens,x) then delete(givens,x) # remove givens as they are generated
else insert(givens,x) # add back any not given