Ordered partitions: Difference between revisions

Content added Content deleted
m (→‎{{header|Julia}}: fix syntax highlighting markup)
Line 1,522: Line 1,522:
The method used, as seen in the function masked(), is to take a brute force permutation of size n = sum of partition,
The method used, as seen in the function masked(), is to take a brute force permutation of size n = sum of partition,
partition it using the provided mask, and then sort the inner lists in order to properly filter duplicates.
partition it using the provided mask, and then sort the inner lists in order to properly filter duplicates.
<lang Julian>
<lang julia>
using Combinatorics
using Combinatorics