[Solved] Can anyone show me an algorithm to create a function that returns all possible partitions of an array into n subsets while maintaining order of array?



Can anyone show me an algorithm to create a function that returns all possible partitions of an array into n subsets while maintaining order of array?

solved Can anyone show me an algorithm to create a function that returns all possible partitions of an array into n subsets while maintaining order of array?