Skip to content

Commit

Permalink
style: initialize NCRModuloP::p with 0
Browse files Browse the repository at this point in the history
Co-authored-by: David Leal <[email protected]>
  • Loading branch information
vil02 and Panquesito7 committed Jan 16, 2024
1 parent d706584 commit fb3fd9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion math/ncr_modulo_p.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ int64_t modInverse(const int64_t& a, const int64_t& m) {
*/
class NCRModuloP {
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>
fac; /// stores precomputed factorial(i) % p value

Expand Down

0 comments on commit fb3fd9c

Please sign in to comment.