Common sorted list: Difference between revisions
Content added Content deleted
Line 303: | Line 303: | ||
[5,1,3,8,9,4,8,7],[3,5,9,8,4],[1,3,7,9] : 1 3 4 5 7 8 9 |
[5,1,3,8,9,4,8,7],[3,5,9,8,4],[1,3,7,9] : 1 3 4 5 7 8 9 |
||
</pre> |
</pre> |
||
=={{header|BQN}}== |
|||
Joins all the arrays, deduplicate, sort. |
|||
<lang bqn>⟨ ⟨ 5 1 3 8 9 4 8 7 ⟩ ⟨ 3 5 9 8 4 ⟩ ⟨ 1 3 7 9 ⟩ ⟩ |
|||
CSL ← ∧·⍷∾ |
|||
∧(⍷∾) |
|||
CSL arr |
|||
⟨ 1 3 4 5 7 8 9 ⟩</lang> |
|||
=={{header|C}}== |
=={{header|C}}== |