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.


Sanjay Kumar
B.Tech Final Year
Department of Computer Engineering
National Institute of Technology Kurukshetra
Kurukshetra - 136119
Haryana, India




On Tue, Aug 16, 2011 at 8:08 AM, Beginner <[email protected]> wrote:

>            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 [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to