algorithm combination(n, r) - csegeek

Dynamic Programming Problem  Evaluate nCr i.e combination ( n, r ). Combination refer to the combination of n things taken r at a time without repetition. Mathematically, nCr = n! / r! * ( n – r )! Solution  Let C ( n , r ) denotes combination of n things taken r at a …