My problem is let suppose my dataset is {A,B,C,D,E}
and suppose my partition size is (2,3)
Result would be
(A,B) (C,D,E)
(A,C) (B,D,E)
(A,D) (C,B,E)
(A,E) (B,C,D)
(B,C) (A,D,E)
(B,D) (A,C,E)
(B,E) (A,C,D)
(C,D) (A,B,E)
(C,E) (A,B,D)
(D,E) (A,B,C)
I need to print all the possible combinations for the partition size provide...The partition size could be(1,4) also...
Please help me out with the logic. Thanks