Dude, its spoj pbm and see eular diagram
On 3/20/11, ganesha wrote:
> Given a number n, write a program to output its various compositions
> where order is not important.
>
> For eg, for 5, it will be
>
> 1 + 4
> 1 + 1 + 3
> 1 + 1 + 1 + 2
> 1 + 1 + 1 + 1 + 1
> 1 + 2 + 2 and so on
>
>
> Order is
Given a number n, write a program to output its various compositions
where order is not important.
For eg, for 5, it will be
1 + 4
1 + 1 + 3
1 + 1 + 1 + 2
1 + 1 + 1 + 1 + 1
1 + 2 + 2 and so on
Order is not important implies 1 + 4 is same as 4 + 1.
Modify the program such that the order is imp