Jump to content

Ordered partitions: Difference between revisions

m
→‎{{header|Julia}}: fix syntax highlighting markup
m (→‎{{header|Julia}}: fix syntax highlighting markup)
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,
partition it using the provided mask, and then sort the inner lists in order to properly filter duplicates.
<lang Julianjulia>
using Combinatorics
 
10,333

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.