From 2ad2f7216d84309f2f80ac1c4696a0da4efb6de7 Mon Sep 17 00:00:00 2001 From: Kaustubh Damania Date: Sat, 14 Nov 2020 11:24:01 +0530 Subject: [PATCH] Update ncr_modulo_p.cpp --- math/ncr_modulo_p.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/math/ncr_modulo_p.cpp b/math/ncr_modulo_p.cpp index 2a8e1820a..3d090a9f8 100644 --- a/math/ncr_modulo_p.cpp +++ b/math/ncr_modulo_p.cpp @@ -28,8 +28,8 @@ namespace ncr_modulo_p { */ class NCRModuloP { private: - std::vector fac{}; - uint64_t p = 0; + std::vector fac{}; // stores precomputed factorial(i) % p value + uint64_t p = 0; // the p from (nCr % p) public: /** Constructor which precomputes the values of n! % mod from n=0 to size