All Questions
2 questions
12
votes
3
answers
7k
views
Random permutation of int[] and ArrayList<Integer>
I wrote a simple program using int[] and ArrayList<Integer> which aims to get a random permutation output between 1 to 10, ...
6
votes
3
answers
2k
views
Optimizing unique partitions of integers
I am working on a project involving the unique partitioning of integers. I.e. I am looking to have all of the partitions of n = x1 + x2 + x3 + ... + xk, where xi = xj implies i = j.
For example, if I ...