0
madhu_'s Avatar, Join Date: Sep 2009
Newbie Member
Quote:
Originally Posted by isurues View Post
A partition of a positive integer n is a sequence of positive integers that sum to n. Write an algorithm in psedocode and then implement the algorithm (in C) to print all non-increasing partitions of n.

eg. If n=4
4
3 1
2 2
2 1 1
1 1 1 1

can u give me the code for this algorithm or tell me how to implement it.
0
madhu_'s Avatar, Join Date: Sep 2009
Newbie Member
can any one give coding for this problem??????