mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
style: initialize NCRModuloP::p
with 0
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
parent
0c19cdfdb0
commit
a928ddcccf
@ -78,7 +78,7 @@ int64_t modInverse(const int64_t& a, const int64_t& m) {
|
|||||||
*/
|
*/
|
||||||
class NCRModuloP {
|
class NCRModuloP {
|
||||||
private:
|
private:
|
||||||
const int64_t p; /// the p from (nCr % p)
|
const int64_t p = 0; /// the p from (nCr % p)
|
||||||
const std::vector<int64_t>
|
const std::vector<int64_t>
|
||||||
fac; /// stores precomputed factorial(i) % p value
|
fac; /// stores precomputed factorial(i) % p value
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user