Count the coins/0-1: Difference between revisions

m
No edit summary
Line 136:
if sum(choice) == targetsum
combos += 1
choice = filter(x -> x != 0, choice)
verbose && println("$choice sums to $targetsum")
for perm in permutations(choice)
Line 221 ⟶ 220:
464 combinations, 3782932 permutations.
</pre>
 
 
=={{header|MiniZinc}}==
4,103

edits