Count the coins/0-1: Difference between revisions
m
→{{header|J}}: spelling
(J) |
m (→{{header|J}}: spelling) |
||
Line 132:
ccoins=: {{ (#i), +/!x:+/"1 i=. x selcoins y }}</lang>
<code>selcoins</code> identifies the valid selections of the coins. <code>ccoins</code> counts
Task examples:<lang J> 6 ccoins 1 2 3 4 5
|