Find the missing permutation: Difference between revisions
m
Moved Uiua section to correct position
(Added Uiua solution) |
m (Moved Uiua section to correct position) |
||
Line 3,485:
}
</syntaxhighlight>
=={{header|Uiua}}==▼
Counts occurrences of each char by column and spots the outliers.▼
<syntaxhighlight lang="uiua">▼
Perms ← ⊜∘⊸≠@ "ABCD CABD ACDB DACB BCDA ACBD ADCB CDAB DABC BCAD CADB CDBA CBAD ABDC ADBC BDCA DCBA BACD BADC BDAC CBDA DBCA DCAB"▼
/⊂≡(▽-⟜/↥:⊕⊃⊢⧻⊛.)⍉ Perms▼
</syntaxhighlight>▼
{{out}}▼
<pre>▼
"DBAC"▼
</pre>▼
=={{header|Ursala}}==
Line 3,526 ⟶ 3,537:
</pre>
▲=={{header|Uiua}}==
▲Counts occurrences of each char by column and spots the outliers.
▲<syntaxhighlight lang="uiua">
▲Perms ← ⊜∘⊸≠@ "ABCD CABD ACDB DACB BCDA ACBD ADCB CDAB DABC BCAD CADB CDBA CBAD ABDC ADBC BDCA DCBA BACD BADC BDAC CBDA DBCA DCAB"
▲/⊂≡(▽-⟜/↥:⊕⊃⊢⧻⊛.)⍉ Perms
▲</syntaxhighlight>
▲{{out}}
▲<pre>
▲"DBAC"
▲</pre>
=={{header|VBScript}}==
Uses the 3rd method approach by adding the columns.
|