Generating distinct partitions in lexicographic ordering

Sign in to test your solution.