[algogeeks] Re: Calculating C(n.r)

2014-04-09 Thread Don
Very nice solution. Don On Wednesday, April 9, 2014 12:55:43 AM UTC-4, Dave wrote: What you want to do is automate the process of cancelling common factors that you would do if you were calculating nCr by hand. Fill an array a[] with the numerator terms, n, n-1, n-2, ..., n-r+1, and a

Re: [algogeeks] Re: Calculating C(n.r)

2014-04-09 Thread kumar raja
Thanks for the idea. On 9 April 2014 10:25, Dave dave_and_da...@juno.com wrote: What you want to do is automate the process of cancelling common factors that you would do if you were calculating nCr by hand. Fill an array a[] with the numerator terms, n, n-1, n-2, ..., n-r+1, and a second