For example:
3=
2 1
1 2
1 1 1
4=
3 1
1 3
1 1 2
1 2 1
2 1 1
1 1 1 1
and so on...
How to write a program in C for such a problem...I can't even seem to figure out the algo?
3=
2 1
1 2
1 1 1
4=
3 1
1 3
1 1 2
1 2 1
2 1 1
1 1 1 1
and so on...
How to write a program in C for such a problem...I can't even seem to figure out the algo?

Comment