We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
NCRModuloP::p
0
1 parent 0c19cdf commit a928ddcCopy full SHA for a928ddc
math/ncr_modulo_p.cpp
@@ -78,7 +78,7 @@ int64_t modInverse(const int64_t& a, const int64_t& m) {
78
*/
79
class NCRModuloP {
80
private:
81
- const int64_t p; /// the p from (nCr % p)
+ const int64_t p = 0; /// the p from (nCr % p)
82
const std::vector<int64_t>
83
fac; /// stores precomputed factorial(i) % p value
84
0 commit comments