View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Longshot Longshot is offline
external usenet poster
 
Posts: 2
Default Partition + Grouping

Hi All,

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.