Re: [algogeeks] Re: one more from amazon

2011-02-08 Thread Gajendra Dadheech
@shashank i think there are some duplicate outputs by this algorithm (112,211)... Thanks and regards, Gajendra Dadheech On Mon, Feb 7, 2011 at 2:29 PM, bittu shashank7andr...@gmail.com wrote: @gajendra i found that its basically combination problem we have to print all combination of all

[algogeeks] Re: one more from amazon

2011-02-07 Thread bittu
@gajendra i found that its basically combination problem we have to print all combination of all number in given range that can compose a given number Examples: For n = 1, the program should print following: 1 For n = 2, the program should print following: 1 1 2 For n = 3, the program should