##
Compute nCr % p | Set 1 (Introduction and Dynamic Programming Solution)
December 10, 2015

Given three numbers n, r and p, compute value of nCr mod p. Example: Input: n = 10, r = 2, p = 13 Output: 6 Explanation: 10C2 is 45 and 45 % 13 is 6. We strongly recommend that you click here and practice it, before moving on to the solution. A Simple Solution… Read More »