[algogeeks] How to print Combination triangle??

2011-08-15 Thread Beginner
1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 1 6 15 20 15 6 1 -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this

Re: [algogeeks] How to print Combination triangle??

2011-08-15 Thread Sanjay Rajpal
See carefully it is a binomial triangle and u r missing 11 as second term. Well each term after second (except 1s) term (i,j), is equal to the sum of the term term(i-1 , j) +term(i-1 , j-1). I think this is enough for you to write the code. Hope it helps and lemme know you solved it or not.