RosettaCodeData/Task/Dinesmans-multiple-dwelling-problem/J/dinesmans-multiple-dwelling-problem-4.j
2024-10-16 18:07:41 -07:00

1 line
64 B
Text

P=: ({~(!A.&i.])@#)'BCFMS' NB. all permutations (orderings)