Pascal Triangle can be used to calculate nCr. But how to calculate something like 25!/(10!3!5!6!). Is this also possible using Pascal's Triangle? If yes then please tell me.
Thanks On Jul 19, 1:54 pm, SAMMM <[email protected]> wrote: > For this you can use pascal triangle . It will give the permutation > value of the the series . > 1 > 1 2 1 > 1 3 3 1 > 1 4 6 4 1 > 1 5 10 10 5 1 > 1 6 15 20 15 1 > > This can easily prepreocessed using dynamic method way . > > a[0][i]=1 1<=i<=n > a[i][0]=1 1<=i<=n > a[i][j] = a[i-1][j-1]+a[i][j-1] > > try this out ....!!!! -- 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.
