R
RG
Hi,
I'd like to have a program that calculates all the partitions of a
string as follows:
The partitions of (1, 2, 3) should be:
((1, 2, 3))
((1, 2), (3))
((1, 3), (2))
((1), (2, 3))
((1), (2), (3))
Thanks in advance,
Ram.
I'd like to have a program that calculates all the partitions of a
string as follows:
The partitions of (1, 2, 3) should be:
((1, 2, 3))
((1, 2), (3))
((1, 3), (2))
((1), (2, 3))
((1), (2), (3))
Thanks in advance,
Ram.