Find the missing permutation: Difference between revisions

Content added Content deleted
(Added Uiua solution)
m (Moved Uiua section to correct position)
 
Line 3,485: Line 3,485:
}
}
</syntaxhighlight>
</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}}==
=={{header|Ursala}}==
Line 3,526: Line 3,537:
</pre>
</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}}==
=={{header|VBScript}}==
Uses the 3rd method approach by adding the columns.
Uses the 3rd method approach by adding the columns.