MCPcopy Create free account
hub / github.com/TheAlgorithms/C-Plus-Plus / ncr

Method ncr

math/ncr_modulo_p.cpp:116–134  ·  view source on GitHub ↗

* @brief computes nCr % p * @param[in] n the number of objects to be chosen * @param[in] r the number of objects to choose from * @return the value nCr % p */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

testsFunction · 0.80
exampleFunction · 0.80

Calls 1

modInverseFunction · 0.85

Tested by

no test coverage detected